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 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lawrencecchen/postgres-bun
- Owner: lawrencecchen
- Created: 2022-10-05T05:06:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T22:36:02.000Z (over 2 years ago)
- Last Synced: 2024-10-13T15:11:56.659Z (3 months ago)
- Language: TypeScript
- Size: 268 KB
- Stars: 28
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bun - postgres-bun - fast postgres bindings for bun runtime (libpq ffi) (Extensions / Utilities)
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