Skip to content

abdurrahmanekr/Websql-Sqlite-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.