esql 0.1.2

Useful and lightweight database extension library for your Rust project
Documentation
mod database;
mod query;
mod types;

pub use query::{
    from, having, r#where, r#where_in, raw, raw_in, select, trusted, wh, wh_in, Args, Having,
    Query, TrustedString, Where,
};
pub use types::Type;

#[cfg(feature = "mysql-async")]
pub use database::mysql::MysqlQueryExt;

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("query returned an unexpected number of rows")]
    UnexpectedRowCount,

    #[cfg(feature = "tokio-postgres")]
    #[error(transparent)]
    PostgresError(#[from] tokio_postgres::Error),

    #[cfg(feature = "mysql-async")]
    #[error(transparent)]
    MysqlError(#[from] mysql_async::Error),
}