lawrencecchen / postgres-bun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

oven-sh/bun#159

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

jarred on discord

Credits

About


Languages

Language:TypeScript 81.7%Language:JavaScript 10.1%Language:C 6.2%Language:Shell 2.0%