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.
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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Convert self
to an expression for Diesel's query builder. Read more
Convert &self
to an expression for Diesel's query builder. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static