[][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

Binary

Bind using sqlite3_bind_blob

Text

Bind using sqlite3_bind_text

Float

bytes should contain an f32

Double

bytes should contain an f64

SmallInt

bytes should contain an i16

Integer

bytes should contain an i32

Long

bytes should contain an i64

Trait Implementations

impl Eq for SqliteType
[src]

impl Copy for SqliteType
[src]

impl PartialEq<SqliteType> for SqliteType
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for SqliteType
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for SqliteType
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[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]

fn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized
[src]

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

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, 
[src]

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]

type Owned = T

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

type Error = !

🔬 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> BorrowMut for T where
    T: ?Sized
[src]

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

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

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