awe-sqlite3
v0.0.5
Published
Awe SQLite is pure C async/await implemenation sqlite3 driver
Downloads
4
Maintainers
Readme
Awe SQLite3
Awe SQlite3 is pure C implementation database connection provide pure async/await SQLite3 C API function invokation.
Example usage:
import { open, exec, close } from 'awe-sqlite3';
const conn1 = await open()
await exec(conn1, "CREATE TABLE contacts (" +
"contact_id INTEGER PRIMARY KEY, " +
"first_name TEXT NOT NULL" +
");");
const code = await exec(conn1, `INSERT INTO contacts (contact_id, first_name) VALUES (${i}, 'user_${i}')`);
console.log(code);
await close(conn1);