Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanwashere/duckdb
🦆 fast duckdb bindings for bun runtime
https://github.com/evanwashere/duckdb
bun duckdb
Last synced: 1 day ago
JSON representation
🦆 fast duckdb bindings for bun runtime
- Host: GitHub
- URL: https://github.com/evanwashere/duckdb
- Owner: evanwashere
- License: apache-2.0
- Created: 2022-05-03T00:02:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T02:33:24.000Z (over 1 year ago)
- Last Synced: 2024-10-31T09:41:48.589Z (8 days ago)
- Topics: bun, duckdb
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 89
- Watchers: 2
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bun - duckdb - 🦆 fast duckdb bindings for bun runtime (Frameworks & Libraries)
- awesome-bun - duckdb - 🦆 fast duckdb bindings for bun runtime. (Extensions / Adapters)
README
@evan/duckdb
fast duckdb bindings for bun runtime
### Install
`bun add @evan/duckdb`## Features
- 🔋 batteries included
- 🚀 jit optimized bindings
- 🐇 2-6x faster than node & deno
## Examples
```js
import { open } from '@evan/duckdb';const db = open('./example.db');
// or const db = open(':memory:');const connection = db.connect();
connection.query('select 1 as number') // -> [{ number: 1 }]
for (const row of connection.stream('select 42 as number')) {
row // -> { number: 42 }
}const prepared = connection.prepare('select ?::INTEGER as number, ?::VARCHAR as text');
prepared.query(1337, 'foo'); // -> [{ number: 1337, text: 'foo' }]
prepared.query(null, 'bar'); // -> [{ number: null, text: 'bar' }]connection.close();
db.close();
```## License
Apache-2.0 © [Evan](https://github.com/evanwashere)