Statement.bind

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

  1. void bind(int index, T value)
  2. void bind(string name, T value)
    struct Statement
    void
    bind
    (
    T
    )
    (
    string name
    ,)

Parameters

name string

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

value 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