getQuery
The getQuery function constructs a string and args pair for retrieving data.
getQuery(sql: Sql): [string: string, args: any[]]| Type | Description | |
|---|---|---|
sql | Sql | The |
| returns | [string: string, args: any[]] | A tuple of [queryString, parameters]. |
This utility function extracts the SQL query string and parameter values from a Sql object, formatting them for execution by the underlying database driver. It is used internally by database connectors to execute parameterized queries.
Since
v0.0.0