mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-01-14 20:52:16 +00:00
33 lines
747 B
Rust
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
|
|
}
|