Enum diesel::sqlite::SqliteType [−][src]
pub enum SqliteType { Binary, Text, Float, Double, SmallInt, Integer, Long, }
Expand description
Determines how a bind parameter is given to SQLite
Diesel deals with bind parameters after serialization as opaque blobs of bytes. However, SQLite instead has several functions where it expects the relevant C types.
The variants of this struct determine what bytes are expected from
ToSql
impls.
Variants
Bind using sqlite3_bind_blob
Bind using sqlite3_bind_text
bytes
should contain an f32
bytes
should contain an f64
bytes
should contain an i16
bytes
should contain an i32
bytes
should contain an i64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SqliteType
impl Send for SqliteType
impl Sync for SqliteType
impl Unpin for SqliteType
impl UnwindSafe for SqliteType
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more