querybuildersqlite3
v1.0.8
Published
SQLite3 integrator
Downloads
5
Readme
Total.js QueryBuilder: SQLite3
A simple QueryBuilder integrator for SQLite3 database.
- Documentation
$ npm install querybuildersqlite3
Initialization:
// require('querybuildersqlite3').init(name, connectionstring, [errorhandling]);
// name {String} a name of DB (default: "default")
// connectionstring {String} a connection to the PostgreSQL
// errorhandling {Function(err, cmd)}
require('querybuildersqlite3').init('default', PATH.databases('mydb.sqlite3'));
// require('querybuildersqlite3').init('default', CONF.database);
Usage:
DB().find('tbl_user').where('id', 1234).callback(console.log);
// DB('default').find('tbl_user').where('id', 1234).callback(console.log);