#[repr(i32)]pub enum Type {
Integer = 1,
Float = 2,
Text = 3,
Blob = 4,
Null = 5,
}Expand description
The datatype of a SQLite column value.
SQLite uses a dynamic type system. Each value stored in a SQLite database has one of these five types.
Variants§
Implementations§
Trait Implementations§
Source§impl<'r> Fetch<'r> for Type
impl<'r> Fetch<'r> for Type
type Value = Type
fn from_value(value: Self::Value) -> Result<Self>
fn fetch_column<'c>( statement: &'r Statement<'c>, column: ColumnIndex, ) -> Result<Self>
Source§fn fetch_value<'c>(value: &'r ValueRef<'c>) -> Result<Self>
fn fetch_value<'c>(value: &'r ValueRef<'c>) -> Result<Self>
Available on crate features
functions or value only.Source§impl<'r> Fetch<'r> for Type
impl<'r> Fetch<'r> for Type
Source§unsafe fn fetch_column<'c>(
statement: &'r Statement<'c>,
column: ColumnIndex,
) -> Selfwhere
'c: 'r,
unsafe fn fetch_column<'c>(
statement: &'r Statement<'c>,
column: ColumnIndex,
) -> Selfwhere
'c: 'r,
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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