db-derive 0.1.5

PotgreSQL/SQLite pooling derive system
Documentation
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,
        },
    };
}