35 lines
676 B
Rust

impl_database_ext! {
sqlx::mysql::MySql {
u8,
u16,
u32,
u64,
i8,
i16,
i32,
i64,
f32,
f64,
// CHAR, VAR_CHAR, TEXT
String,
// BINARY, VAR_BINARY, BLOB
Vec<u8>,
#[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>,
},
ParamChecking::Weak,
row = sqlx::mysql::MySqlRow
}