Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/lawrencecchen/postgres-bun


https://github.com/lawrencecchen/postgres-bun

Last synced: about 1 month ago
JSON representation

Lists

README

        

postgres-bun


fast postgres bindings for bun runtime (libpq ffi)


only tested on my mac for now.

The shared library is currently hard coded:

```ts
const path = `/usr/local/pgsql/lib/libpq.${suffix}`;
```

### Install

`bun add postgres-bun`

### Benchmark

Make sure you have postgres installed.

```bash
bun install
cd ./benches/node-libpq && npm install && cd ../..
bun bench
```

### is this the fastest??

not sure yet.

https://github.com/oven-sh/bun/issues/159

getting started with the latter, will hopefully get to the former so we can benchmark.

![jarred on discord](media/libpq-vs-socket.png)

### Credits

- https://github.com/duckdb/duckdb