toQuery() function
A fragment as the pair query takes.
Signature:
export declare function toQuery(fragment: SqlFragment): [string, unknown[]];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
fragment |
The statement to run. |
Returns:
[string, unknown[]]
The statement and its values, to spread into query.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.