1use crate::{PostgresConnection, PostgresPrepared, PostgresSqlWriter, PostgresTransaction};
2use tank_core::Driver;
3
4#[derive(Debug)]
6pub struct PostgresDriver {}
7
8impl PostgresDriver {
9 pub const fn new() -> Self {
10 Self {}
11 }
12}
13
14impl Driver for PostgresDriver {
15 type Connection = PostgresConnection;
16 type SqlWriter = PostgresSqlWriter;
17 type Prepared = PostgresPrepared;
18 type Transaction<'c> = PostgresTransaction<'c>;
19
20 const NAME: &'static str = "postgres";
21 fn sql_writer(&self) -> PostgresSqlWriter {
22 PostgresSqlWriter {}
23 }
24}