Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 916 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 916 Bytes

Total.js QueryBuilder: mssql

A simple QueryBuilder integrator for mssql database.

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