bindArguments
Function: bindArguments()
bindArguments(
db,sql,values):any[]
Defined in: sqlite/src/connection.ts:116
The arguments binding values to the numbered parameters (?1, ?2...) of a statement
Node 22 does not bind positional values to numbered parameters (column index out of range), it only takes them
by name. Later versions bind them by position: what they do is left untouched.
Parameters
db
DatabaseSync
the database, to probe what this Node supports
sql
string
the statement
values
any[]
the parameters, the first one is ?1
Returns
any[]
the arguments to spread on run(), all() or get()