pub enum ExtendedColumnAffinity {
Text,
Integer,
Real,
Blob,
Boolean,
Json,
Datetime,
Date,
Time,
Numeric,
}
Expand description
A columns “extended affinity”. The traditional affinity does not include supplementary “types” that SQLite doesn’t support out of the box, like JSON, boolean, or datetime. This is an experimental extension to tradition affinities, and may change anytime.
Variants§
Text
“char”, “clob”, or “text”
Integer
“int”
Real
“real”, “floa”, or “doub”
Blob
“blob” or empty
Boolean
0 or 1
Json
Datetime
Date
Time
Numeric
else, no other matches
Implementations§
Source§impl ExtendedColumnAffinity
impl ExtendedColumnAffinity
pub fn extended_column_affinity_from_type(declared_type: &str) -> Self
Auto Trait Implementations§
impl Freeze for ExtendedColumnAffinity
impl RefUnwindSafe for ExtendedColumnAffinity
impl Send for ExtendedColumnAffinity
impl Sync for ExtendedColumnAffinity
impl Unpin for ExtendedColumnAffinity
impl UnwindSafe for ExtendedColumnAffinity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more