Methods
(async) all(sql, params) → {object}
Get all results
Parameters:
Name | Type | Description |
---|---|---|
sql |
string | the sql statement |
params |
Array.<string> | the parameters used in the sql statement |
- Source:
Returns:
an object that represents all row retrieved by the query
- Type
- object
(async) get(sql, params) → {object}
Get the first result
Parameters:
Name | Type | Description |
---|---|---|
sql |
string | the sql statement |
params |
Array.<string> | the parameters used in the sql statement |
- Source:
Returns:
an object that represents the first row retrieved by the query
- Type
- object
(async) run(sql, params) → {object}
Run the statement
Parameters:
Name | Type | Description |
---|---|---|
sql |
string | the sql statement |
params |
array | the parameters used in the sql statement |
- Source:
Returns:
an info object describing any changes made
- Type
- object