sqlite3-promise
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/sqlite3-promise package

1.0.3 • Public • Published

node-sqlite3-promise

Promise version of sqlite3.

How to use it?

var sqlite3=require('sqlite3-promise')

init() 

async function init(){
    var db=new sqlite3.Database('candelete.db')
    await db.runAsync('create table abc (c tinyint)')
    await db.runAsync('insert into abc values (3)')
    var result = await db.allAsync('select * from abc')
    console.log(result)  // {[a:3]}
}

Readme

Keywords

none

Package Sidebar

Install

npm i sqlite3-promise

Weekly Downloads

10

Version

1.0.3

License

ISC

Last publish

Collaborators

  • aminadav