#![allow(unexpected_cfgs)]
pub mod attrs;
pub mod builder;
pub mod common;
pub mod expr;
pub mod expressions;
pub mod helpers;
pub mod traits;
pub mod values;
#[cfg(all(feature = "postgres-sync", not(feature = "tokio-postgres")))]
pub use postgres::Row;
#[cfg(feature = "tokio-postgres")]
pub use tokio_postgres::Row;
pub use drizzle_core::ParamBind;
#[macro_export]
macro_rules! params {
[$($param:tt),+ $(,)?] => {
[
$(
$crate::params_internal!($param)
),+
]
};
}
#[macro_export]
macro_rules! params_internal {
({ $key:ident: $value:expr }) => {
$crate::ParamBind::new(
stringify!($key),
$crate::values::PostgresValue::from($value),
)
};
($value:expr) => {
$crate::ParamBind::positional($crate::values::PostgresValue::from($value))
};
}