squel-raw
Version:
Extension to squel to create raw sql-statements to use with mod-mysql-postgresql
18 lines (13 loc) • 550 B
Markdown
This project is an extension to the [squel](http://hiddentao.github.io/squel/)
library. Its only purpose is to add the functionality to squel to create raw
sql-statements that can be used by the
[](https://github.com/vert-x/mod-mysql-postgresql)
vert.x-module directly.
To use this in your code you simply require squel-raw instead of squel.
```js
var squel = require('squel-raw')
.useFlavour(<flavorToUse>);
squel.select().from('table').toRaw();
// => { "action": "raw", "command": "SELECT * from table;" }
```