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]

[src]

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

1.3.0
[src]

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

impl PartialEq for SqliteType
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for SqliteType
[src]

impl Clone for SqliteType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SqliteType
[src]