Skip to content

Asynchronous SQLite3 bindings for JavaScript with VFS support

License

Notifications You must be signed in to change notification settings

holepunchto/sqlite3-native

Repository files navigation

sqlite3-native

Asynchronous SQLite3 bindings for JavaScript with VFS support.

npm i sqlite3-native

Usage

const SQLite3 = require('sqlite3-native')

const sql = new SQLite3()

await sql.exec(`CREATE TABLE records (NAME TEXT NOT NULL);`)

await sql.exec(`INSERT INTO records (NAME) values ('Jane'), ('John');`)

await sql.exec(`SELECT NAME FROM records;`)

// [
//   { rows: [ 'Jane' ], columns: [ 'NAME' ] },
//   { rows: [ 'John' ], columns: [ 'NAME' ] }
// ]

License

Apache-2.0

About

Asynchronous SQLite3 bindings for JavaScript with VFS support

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •