sqlx-firebirdsql 0.1.0

Firebird SQL driver for SQLx
// Type mappings used by the macros and `Debug` impls.

#[allow(unused_imports)]
use sqlx_core as sqlx;

use crate::Firebird;

sqlx_core::impl_type_checking!(
    Firebird {
        u8,
        u16,
        u32,
        u64,
        i8,
        i16,
        i32,
        i64,
        f32,
        f64,

        // ordering is important here as otherwise we might infer strings to be binary
        // CHAR, VAR_CHAR, TEXT
        String,

        // BINARY, VAR_BINARY, BLOB
        Vec<u8>,

        #[cfg(feature = "json")]
        sqlx::types::JsonValue,
    },
    ParamChecking::Weak,
    feature-types: info => info.__type_feature_gate(),
    datetime-types: {
        chrono: {
            sqlx::types::chrono::NaiveTime,

            sqlx::types::chrono::NaiveDate,

            sqlx::types::chrono::NaiveDateTime,

            sqlx::types::chrono::DateTime<sqlx::types::chrono::Utc>,
        },
        time: {},
    },
    numeric-types: {
        bigdecimal: {},
        rust_decimal: {
            sqlx::types::Decimal,
        },
    },
);