pub trait ToParam: Sealed {
    fn bind_param(self, stmt: &mut Statement, position: i32) -> Result<()>;
}
Expand description

Trait for types which can be passed into SQLite queries as parameters.

Required Methods§

Bind this value to the prepared Statement at the provided position.

Note: the position of a named parameter can be obtained using Statement::parameter_position.

Implementations on Foreign Types§

Sets the parameter to the contained value or NULL.

Used to bind named parameters. Sets the parameter with the name at self.0 to the value at self.1.

Implementors§

Sets the parameter to a dynamically typed Value.

Sets the parameter to NULL with this value as an associated pointer.