pub enum Value {
Null,
Integer(i64),
Real(f64),
Text(String),
Blob(Vec<u8>),
}Expand description
A value’s storage class, owning its data.
These are the five SQLite storage classes. Note that SQLite stores BOOLEAN
as integers and has no separate date/time class — those are conventions on
top of these five.
Variants§
Null
SQL NULL.
Integer(i64)
A signed 64-bit integer.
Real(f64)
An IEEE-754 double.
Text(String)
A UTF-8 text value. (SQLite also supports UTF-16; graphitesql stores text as UTF-8 internally and converts at the boundary.)
Blob(Vec<u8>)
A binary blob.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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