postgres-bun
postgres-bun copied to clipboard
postgres-bun
fast postgres bindings for bun runtime (libpq ffi)
only tested on my mac for now.
The shared library is currently hard coded:
const path = `/usr/local/pgsql/lib/libpq.${suffix}`;
Install
bun add postgres-bun
Benchmark
Make sure you have postgres installed.
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.
Credits
- https://github.com/duckdb/duckdb