2020-03-11 01:47:16 -07:00

33 lines
747 B
Rust

impl_database_ext! {
sqlx::postgres::Postgres {
bool,
String | &str,
i16,
i32,
i64,
f32,
f64,
// BYTEA
Vec<u8> | &[u8],
#[cfg(feature = "uuid")]
sqlx::types::Uuid,
#[cfg(feature = "chrono")]
sqlx::types::chrono::NaiveTime,
#[cfg(feature = "chrono")]
sqlx::types::chrono::NaiveDate,
#[cfg(feature = "chrono")]
sqlx::types::chrono::NaiveDateTime,
#[cfg(feature = "chrono")]
sqlx::types::chrono::DateTime<sqlx::types::chrono::Utc> | sqlx::types::chrono::DateTime<_>,
},
ParamChecking::Strong,
feature-types: info => info.type_feature_gate(),
row = sqlx::postgres::PgRow
}