Skip to main content

Module to_sql

Module to_sql 

Source
Expand description

Trait for converting Rust types to SQL values.

Structs§

DecimalParamInfo
Explicit precision and scale for a decimal/numeric parameter (see numeric).
Numeric
A decimal/numeric parameter with explicit precision and scale.
TypedNull
A typed NULL parameter, created with null.

Traits§

SqlTyped
Associates a Rust type with its SQL type name so a typed NULL can be declared without a value (see null).
ToSql
Trait for types that can be converted to SQL values.

Functions§

null
Create a typed NULL parameter for SQL type T, e.g. null::<i32>().
numeric
Create a decimal/numeric parameter with explicit precision and scale.