sql
Essential
The sql method is a parameterizing tagged-template form of query.
sql<RowType>(
strings: TemplateStringsArray,
...params: JsonValue[],
): Promise<Results<RowType>>| Type | Description | |
|---|---|---|
strings | TemplateStringsArray | |
...params | JsonValue[] | |
| returns | Promise<Results<RowType>> | A Promise resolving to the statement results. |
Interpolated values become $n parameters. It does not interpolate raw identifiers or SQL fragments.
Since
v0.0.5