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

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 Hash for SqliteType
[src]
[+]

[]

Feeds this value into the given [Hasher]. Read more

[]

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

impl PartialEq for SqliteType
[src]
[+]

[]

This method tests for self and other values to be equal, and is used by ==. Read more

[]

This method tests for !=.

impl Eq for SqliteType
[src]

impl Clone for SqliteType
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Copy for SqliteType
[src]

Auto Trait Implementations

impl Send for SqliteType

impl Sync for SqliteType