Statement.bind

Binds values to parameters of this statement, using parameter names.

Parameters

name
Type: string

The name of the parameter, including the ':', '@' or '$' that introduced it.

value
Type: T

The bound _value. The type of value must be compatible with the SQLite types: it must be a boolean or numeric type, a string, an array, null, or a Nullable!T where T is any of the previous types.

Warning: While convenient, this overload of bind is less performant, because it has to retrieve the column index with a call to the SQLite function sqlite3_bind_parameter_index.

Meta