WebSql and Sqlite Compatible SqlService Library
install command:
npm install websqlite --save
const websqlite = require('websqlite');
var SqlService = new websqlite();
SqlService.init({
id: 'user', // db name
dbObject: window, // database object eg: window.openDatabase
timeout: 5000 // process waiting time
})
name | description |
---|---|
id | database name |
dbObject | database object |
timeout | sql process timeout |
version | database version (default: 1.0) |
description | database description (default: Database) |
This library MIT license. Copyright Avare Kodcu.