querybuildersqlserver
v1.0.1
Published
MS SQL integrator
Downloads
4
Readme
Total.js QueryBuilder: mssql
A simple QueryBuilder integrator for mssql database.
- Documentation
$ npm install querybuildersqlserver
Initialization
- Example:
microsoftsqlserver://user:password@localhost:5432/database
// require('querybuilderpg').init(name, connectionstring, pooling, [errorhandling]);
// name {String} a name of DB (default: "default")
// connectionstring {String} a connection to the mssql
// pooling {Number} max. clients (default: "0" (disabled))
// errorhandling {Function(err, cmd)}
require('querybuilderpg').init('default', CONF.database);
// require('querybuilderpg').init('default', CONF.database, 10);
Usage:
DATA.find('tbl_user').where('id', 1234).callback(console.log);
Connection string attributes
- Connection string example:
microsoftsqlserver://user:password@localhost:5432/database