require("node-query")(drivername, connObject, connLib) → {queryBuilder}
Create a query builder object
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
drivername |
String | The name of the database type, eg. mysql or pg |
|
connObject |
Object | A connection object from the database library you are connecting with |
|
connLib |
String |
<optional> |
The name of the db connection library you are using, eg. mysql or mysql2. Optional if the same as drivername |
- Source:
Returns:
- Type
- queryBuilder
- Source:
Methods
-
getQuery() → {queryBuilder}
-
Return an existing query builder instance
- Source:
Returns:
- Type
- queryBuilder