query
Essential
The query method executes exactly one parameterized SQL statement.
query<RowType>(
sql: string,
params?: JsonValue[],
options?: QueryOptions,
): Promise<Results<RowType>>| Type | Description | |
|---|---|---|
sql | string | A statement in the documented TinyJoin SQL subset. |
params? | JsonValue[] | JSON-compatible values for |
options? | QueryOptions | Result-shape options. |
| returns | Promise<Results<RowType>> | A Promise resolving to the statement results. |
Since
v0.0.5