Rindle docs and package mapSkip to main content

to_sqlite_param

Function to_sqlite_param 

Source
pub fn to_sqlite_param(value: Value<'_>, ty: ValueType) -> SqliteParam
Expand description

toSQLiteType (query-builder.ts:278): convert a cell value to its SQLite bind form, ty-directed. booleannull stays NULL else 1/0; number/string/null pass through; json → serialized TEXT (a null json serializes to the TEXT "null"). Takes the borrowed [Value] (a flat row’s cell form); owned callers bridge with .as_ref().