use crate::any::{
AnyArgumentBuffer, AnyArguments, AnyColumn, AnyConnection, AnyQueryResult, AnyRow,
AnyStatement, AnyTransactionManager, AnyTypeInfo, AnyValue, AnyValueRef,
};
use crate::database::{Database, HasArguments, HasStatement, HasStatementCache, HasValueRef};
#[derive(Debug)]
pub struct Any;
impl Database for Any {
type Connection = AnyConnection;
type TransactionManager = AnyTransactionManager;
type Row = AnyRow;
type QueryResult = AnyQueryResult;
type Column = AnyColumn;
type TypeInfo = AnyTypeInfo;
type Value = AnyValue;
const NAME: &'static str = "Any";
const URL_SCHEMES: &'static [&'static str] = &[];
}
impl<'r> HasValueRef<'r> for Any {
type Database = Any;
type ValueRef = AnyValueRef<'r>;
}
impl<'q> HasStatement<'q> for Any {
type Database = Any;
type Statement = AnyStatement<'q>;
}
impl<'q> HasArguments<'q> for Any {
type Database = Any;
type Arguments = AnyArguments<'q>;
type ArgumentBuffer = AnyArgumentBuffer<'q>;
}
impl HasStatementCache for Any {}