Struct diesel::sqlite::Sqlite
[−]
[src]
pub struct Sqlite;
The SQLite backend
Trait Implementations
impl HasSqlType<Bool> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<SmallInt> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Integer> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<BigInt> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Float> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Double> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Numeric> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Text> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Binary> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Date> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Time> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl HasSqlType<Timestamp> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl Debug for Sqlite
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Sqlite
[src]
impl Clone for Sqlite
[src]
fn clone(&self) -> Sqlite
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for Sqlite
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Sqlite
[src]
fn eq(&self, __arg_0: &Sqlite) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Sqlite
[src]
impl Backend for Sqlite
[src]
type QueryBuilder = SqliteQueryBuilder
The concrete QueryBuilder
implementation for this backend.
type BindCollector = RawBytesBindCollector<Sqlite>
The concrete BindCollector
implementation for this backend. Read more
type RawValue = SqliteValue
The raw representation of a database value given to FromSql
. Read more
type ByteOrder = NativeEndian
What byte order is used to transmit integers? Read more
impl TypeMetadata for Sqlite
[src]
type TypeMetadata = SqliteType
The actual type used to represent metadata. Read more
type MetadataLookup = ()
The type used for runtime lookup of metadata. Read more
impl UsesAnsiSavepointSyntax for Sqlite
[src]
impl FromSql<Date, Sqlite> for NaiveDate
[src]
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
[src]
See the trait documentation.
impl ToSql<Date, Sqlite> for NaiveDate
[src]
impl FromSql<Time, Sqlite> for NaiveTime
[src]
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
[src]
See the trait documentation.
impl ToSql<Time, Sqlite> for NaiveTime
[src]
impl FromSql<Timestamp, Sqlite> for NaiveDateTime
[src]
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
[src]
See the trait documentation.
impl ToSql<Timestamp, Sqlite> for NaiveDateTime
[src]
impl FromSql<Date, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl ToSql<Date, Sqlite> for str
[src]
impl ToSql<Date, Sqlite> for String
[src]
impl FromSql<Time, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl ToSql<Time, Sqlite> for str
[src]
impl ToSql<Time, Sqlite> for String
[src]
impl FromSql<Timestamp, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl ToSql<Timestamp, Sqlite> for str
[src]
impl ToSql<Timestamp, Sqlite> for String
[src]
impl FromSql<Numeric, Sqlite> for BigDecimal
[src]
impl FromSql<VarChar, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl FromSql<Binary, Sqlite> for *const [u8]
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of Vec<u8>
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl FromSql<SmallInt, Sqlite> for i16
[src]
impl FromSql<Integer, Sqlite> for i32
[src]
impl FromSql<Bool, Sqlite> for bool
[src]
impl FromSql<BigInt, Sqlite> for i64
[src]
impl FromSql<Float, Sqlite> for f32
[src]
impl FromSql<Double, Sqlite> for f64
[src]
impl ToSql<Bool, Sqlite> for bool
[src]
impl QueryBuilder<Sqlite> for SqliteQueryBuilder
[src]
fn push_sql(&mut self, sql: &str)
[src]
Add sql
to the end of the query being constructed.
fn push_identifier(&mut self, identifier: &str) -> QueryResult<()>
[src]
Quote identifier
, and add it to the end of the query being constructed. Read more
fn push_bind_param(&mut self)
[src]
Add a placeholder for a bind parameter to the end of the query being constructed. Read more
fn finish(self) -> String
[src]
Returns the constructed SQL query.