Skip to main content

bind

Function bind 

Source
pub fn bind(values: &[String]) -> Params
Expand description

Turns caller values into the shape the driver sends.

Every value is bound as text and the server converts it to the column’s own type. Deciding the type here would mean guessing, and a wrong guess changes what the statement matches. Binding as text never changes the statement, because a bound value is never part of the statement.