use byteorder::NativeEndian;
use super::connection::SqliteValue;
use super::query_builder::SqliteQueryBuilder;
use backend::*;
use query_builder::bind_collector::RawBytesBindCollector;
use sql_types::TypeMetadata;
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct Sqlite;
#[allow(missing_debug_implementations)]
#[derive(Hash, PartialEq, Eq, Clone, Copy)]
pub enum SqliteType {
Binary,
Text,
Float,
Double,
SmallInt,
Integer,
Long,
}
impl Backend for Sqlite {
type QueryBuilder = SqliteQueryBuilder;
type BindCollector = RawBytesBindCollector<Sqlite>;
type RawValue = SqliteValue;
type ByteOrder = NativeEndian;
}
impl TypeMetadata for Sqlite {
type TypeMetadata = SqliteType;
type MetadataLookup = ();
}
impl UsesAnsiSavepointSyntax for Sqlite {}