pub enum ColumnAffinity {
    Text,
    Integer,
    Real,
    Blob,
    Numeric,
}
Expand description

Variants§

§

Text

“char”, “clob”, or “text”

§

Integer

“int”

§

Real

“real”, “floa”, or “doub”

§

Blob

“blob” or empty

§

Numeric

else, no other matches

Implementations§

Determines a column’s affinity based on its declared typed, from https://www.sqlite.org/datatype3.html#determination_of_column_affinity

Result the given value on the given sqlite3_context, while applying the proper affinity rules. It may instead result as an i32, i64, or f64 numberor default back to just text.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.