Skip to main content

NUMERIC

Constant NUMERIC 

Source
pub const NUMERIC: TypeMarker;
Expand description

Sets the column type to NUMERIC.

ยงExamples

#[column(numeric)]
amount: f64,

A NUMERIC column converts text that looks like a number into INTEGER or REAL, and stores other values as given.

See: https://sqlite.org/datatype3.html#type_affinity