An open API service indexing awesome lists of open source software.

https://github.com/totaljs/querybuildersqlserver

Total.js QueryBuilder for MS SQL Server
https://github.com/totaljs/querybuildersqlserver

Last synced: 8 months ago
JSON representation

Total.js QueryBuilder for MS SQL Server

Awesome Lists containing this project

README

          

# Total.js QueryBuilder: mssql

A simple QueryBuilder integrator for mssql database.

- [Documentation](https://docs.totaljs.com/total4/pzbr001pr41d/)
- `$ npm install querybuildersqlserver`

## Initialization

- Example: `microsoftsqlserver://user:password@localhost:5432/database`

```js
// 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**:

```js
DATA.find('tbl_user').where('id', 1234).callback(console.log);
```

## Connection string attributes

- Connection string example: `microsoftsqlserver://user:password@localhost:5432/database`