[][src]Enum diesel::sqlite::SqliteType

pub enum SqliteType {
    Binary,
    Text,
    Float,
    Double,
    SmallInt,
    Integer,
    Long,
}

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

impl PartialEq<SqliteType> for SqliteType
[src]

This method tests for !=.

impl Clone for SqliteType
[src]

Performs copy-assignment from source. Read more

impl Copy for SqliteType
[src]

impl Eq for SqliteType
[src]

impl Hash for SqliteType
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for SqliteType

impl Sync for SqliteType

Blanket Implementations

impl<T> IntoSql for T
[src]

Convert self to an expression for Diesel's query builder. Read more

Convert &self to an expression for Diesel's query builder. Read more

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]