Skip to content
websql sqlite library, websqlite
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
.editorconfig
.gitattributes
.gitignore
LICENSE.md
README.md
gulpfile.js
index.js
package.json

README.md

WebSqLite

WebSql and Sqlite Compatible SqlService Library

Install

install command:

npm install websqlite --save

Initialize

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)

API documentation

API link

License

This library MIT license. Copyright Avare Kodcu.

You can’t perform that action at this time.