tank-postgres 0.33.0

Postgres driver implementation for Tank: the Rust data layer
Documentation
use crate::{PostgresConnection, PostgresPrepared, PostgresSqlWriter, PostgresTransaction};
use tank_core::Driver;

/// Postgres driver.
#[derive(Default, Clone, Debug)]
pub struct PostgresDriver {}
impl PostgresDriver {
    pub const fn new() -> Self {
        Self {}
    }
}

impl Driver for PostgresDriver {
    type Connection = PostgresConnection;
    type SqlWriter = PostgresSqlWriter;
    type Prepared = PostgresPrepared;
    type Transaction<'c> = PostgresTransaction<'c>;

    const NAME: &'static [&'static str] = &["postgres"];
    fn sql_writer(&self) -> PostgresSqlWriter {
        PostgresSqlWriter {}
    }
}