Namespace "bun:sqlite"

Fast SQLite3 driver for Bun.js

Since

v0.0.83

Example

import { Database } from 'bun:sqlite';

var db = new Database('app.db');
db.query('SELECT * FROM users WHERE name = ?').all('John');
// => [{ id: 1, name: 'John' }]

The following types can be used when binding parameters:

JavaScript type SQLite type
string TEXT
number INTEGER or DECIMAL
boolean INTEGER (1 or 0)
Uint8Array BLOB
Buffer BLOB
bigint INTEGER
null NULL

References

Classes

Type Aliases

Variables

References

Renames and re-exports Database

Generated using TypeDoc