use crate::Postgres; // The paths used below will also be emitted by the macros so they have to match the final facade. #[allow(unused_imports, dead_code)] mod sqlx { pub use crate as postgres; pub use sqlx_core::*; } impl_type_checking!( Postgres { (), bool, String | &str, i8, i16, i32, i64, f32, f64, Vec | &[u8], sqlx::postgres::types::Oid, sqlx::postgres::types::PgInterval, sqlx::postgres::types::PgMoney, sqlx::postgres::types::PgLTree, sqlx::postgres::types::PgLQuery, sqlx::postgres::types::PgCube, sqlx::postgres::types::PgPoint, sqlx::postgres::types::PgLine, #[cfg(feature = "uuid")] sqlx::types::Uuid, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveTime, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDate, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::NaiveDateTime, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::types::chrono::DateTime | sqlx::types::chrono::DateTime<_>, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgTimeTz, #[cfg(feature = "time")] sqlx::types::time::Time, #[cfg(feature = "time")] sqlx::types::time::Date, #[cfg(feature = "time")] sqlx::types::time::PrimitiveDateTime, #[cfg(feature = "time")] sqlx::types::time::OffsetDateTime, #[cfg(feature = "time")] sqlx::postgres::types::PgTimeTz, #[cfg(feature = "bigdecimal")] sqlx::types::BigDecimal, #[cfg(feature = "rust_decimal")] sqlx::types::Decimal, #[cfg(feature = "ipnetwork")] sqlx::types::ipnetwork::IpNetwork, #[cfg(feature = "mac_address")] sqlx::types::mac_address::MacAddress, #[cfg(feature = "json")] sqlx::types::JsonValue, #[cfg(feature = "bit-vec")] sqlx::types::BitVec, sqlx::postgres::types::PgHstore, // Arrays Vec | &[bool], Vec | &[String], Vec> | &[Vec], Vec | &[i8], Vec | &[i16], Vec | &[i32], Vec | &[i64], Vec | &[f32], Vec | &[f64], Vec | &[sqlx::postgres::types::Oid], Vec | &[sqlx::postgres::types::PgMoney], Vec | &[sqlx::postgres::types::PgInterval], #[cfg(feature = "uuid")] Vec | &[sqlx::types::Uuid], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveTime], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveDate], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec | &[sqlx::types::chrono::NaiveDateTime], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::types::chrono::DateTime<_>], #[cfg(feature = "time")] Vec | &[sqlx::types::time::Time], #[cfg(feature = "time")] Vec | &[sqlx::types::time::Date], #[cfg(feature = "time")] Vec | &[sqlx::types::time::PrimitiveDateTime], #[cfg(feature = "time")] Vec | &[sqlx::types::time::OffsetDateTime], #[cfg(feature = "bigdecimal")] Vec | &[sqlx::types::BigDecimal], #[cfg(feature = "rust_decimal")] Vec | &[sqlx::types::Decimal], #[cfg(feature = "ipnetwork")] Vec | &[sqlx::types::ipnetwork::IpNetwork], #[cfg(feature = "mac_address")] Vec | &[sqlx::types::mac_address::MacAddress], #[cfg(feature = "json")] Vec | &[sqlx::types::JsonValue], Vec | &[sqlx::postgres::types::PgHstore], // Ranges sqlx::postgres::types::PgRange, sqlx::postgres::types::PgRange, #[cfg(feature = "bigdecimal")] sqlx::postgres::types::PgRange, #[cfg(feature = "rust_decimal")] sqlx::postgres::types::PgRange, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange, #[cfg(all(feature = "chrono", not(feature = "time")))] sqlx::postgres::types::PgRange> | sqlx::postgres::types::PgRange>, #[cfg(feature = "time")] sqlx::postgres::types::PgRange, #[cfg(feature = "time")] sqlx::postgres::types::PgRange, #[cfg(feature = "time")] sqlx::postgres::types::PgRange, // Range arrays Vec> | &[sqlx::postgres::types::PgRange], Vec> | &[sqlx::postgres::types::PgRange], #[cfg(feature = "bigdecimal")] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(feature = "rust_decimal")] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec>> | &[sqlx::postgres::types::PgRange>], #[cfg(all(feature = "chrono", not(feature = "time")))] Vec>> | &[sqlx::postgres::types::PgRange>], #[cfg(feature = "time")] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(feature = "time")] Vec> | &[sqlx::postgres::types::PgRange], #[cfg(feature = "time")] Vec> | &[sqlx::postgres::types::PgRange], }, ParamChecking::Strong, feature-types: info => info.__type_feature_gate(), );