use crate::{SQLiteConnection, SQLitePrepared, SQLiteTransaction, sql_writer::SQLiteSqlWriter};
use tank_core::Driver;
#[derive(Default, Clone, Debug)]
pub struct SQLiteDriver {}
impl SQLiteDriver {
pub const fn new() -> Self {
Self {}
}
}
impl Driver for SQLiteDriver {
type Connection = SQLiteConnection;
type SqlWriter = SQLiteSqlWriter;
type Prepared = SQLitePrepared;
type Transaction<'c> = SQLiteTransaction<'c>;
const NAME: &'static [&'static str] = &["sqlite"];
fn sql_writer(&self) -> SQLiteSqlWriter {
SQLiteSqlWriter {}
}
}