1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pub use db_derive_impl::*;

pub use postgres_types::to_sql_checked as postgres_to_sql_checked;

pub mod conn;
pub mod error;
pub mod execute;
pub mod kind;
pub mod query;
pub mod sql;
pub mod table;

pub use self::{
    conn::{ConnTrans, Connection, Pool, PoolKind, Row, Transaction},
    error::{Error, OptionalExtension},
    execute::Execute,
    kind::Kind,
    query::Query,
    sql::Sql,
    table::Table,
};

pub trait RefInto<T>: Sized {
    fn ref_into(&self) -> T;
}

pub mod internal {
    pub use {
        postgres::types::{
            FromSql as PostgresFromSQL, IsNull as PostgresIsNull, Kind as PostgresKind,
            ToSql as PostgresToSQL, Type as PostgresType,
        },
        postgres_types::private::BytesMut as PostgresBytesMut,
        rusqlite::{
            types::{
                FromSql as SQLiteFromSQL, FromSqlResult as SQLiteFromSqlResult,
                ToSql as SQLiteToSQL, ToSqlOutput as SQLiteToSqlOutput, ValueRef as SQLiteValueRef,
            },
            Result as SQLiteResult,
        },
    };
}