sqlite › Globals › "src/utils/strings"
▸ toSqlParams(sql: SqlType, params: any[]): SqlObj
Defined in src/utils/strings.ts:10
Allows for using strings and sql-template-strings. Converts both to a
format that's usable by the SQL methods
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
sql |
SqlType | - | A SQL string or sql-template-strings object |
params |
any[] | [] | An array of parameters |
Returns: SqlObj