| 1 | // Type mappings used by the macros and `Debug` impls. |
| 2 | |
| 3 | #[allow(unused_imports)] |
| 4 | use sqlx_corerust-analyzer cargo sqlx-core 0.8.3 crate/ as sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/; |
| 5 | |
| 6 | use craterust-analyzer cargo sqlx-mysql 0.8.3 crate/::MySqlrust-analyzer cargo sqlx-mysql 0.8.3 database/MySql#; |
| 7 | |
| 8 | impl_type_checkingrust-analyzer cargo sqlx-core 0.8.3 type_checking/impl_type_checking!!( |
| 9 | MySqlrust-analyzer cargo sqlx-mysql 0.8.3 database/MySql# { |
| 10 | u8, |
| 11 | u16, |
| 12 | u32, |
| 13 | u64, |
| 14 | i8, |
| 15 | i16, |
| 16 | i32, |
| 17 | i64, |
| 18 | f32, |
| 19 | f64, |
| 20 | |
| 21 | // ordering is important here as otherwise we might infer strings to be binary |
| 22 | // CHAR, VAR_CHAR, TEXT |
| 23 | Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, |
| 24 | |
| 25 | // BINARY, VAR_BINARY, BLOB |
| 26 | Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>, |
| 27 | |
| 28 | // Types from third-party crates need to be referenced at a known path |
| 29 | // for the macros to work, but we don't want to require the user to add extra dependencies. |
| 30 | #[cfg(all(feature = "chrono", not(feature = "time")))] |
| 31 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::chronorust-analyzer cargo sqlx-core 0.8.3 types/chrono/::NaiveTimerust-analyzer cargo chrono 0.4.45 naive/time/NaiveTime#, |
| 32 | |
| 33 | #[cfg(all(feature = "chrono", not(feature = "time")))] |
| 34 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::chronorust-analyzer cargo sqlx-core 0.8.3 types/chrono/::NaiveDaterust-analyzer cargo chrono 0.4.45 naive/date/NaiveDate#, |
| 35 | |
| 36 | #[cfg(all(feature = "chrono", not(feature = "time")))] |
| 37 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::chronorust-analyzer cargo sqlx-core 0.8.3 types/chrono/::NaiveDateTimerust-analyzer cargo chrono 0.4.45 naive/datetime/NaiveDateTime#, |
| 38 | |
| 39 | #[cfg(all(feature = "chrono", not(feature = "time")))] |
| 40 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::chronorust-analyzer cargo sqlx-core 0.8.3 types/chrono/::DateTimerust-analyzer cargo chrono 0.4.45 datetime/DateTime#<sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::chronorust-analyzer cargo sqlx-core 0.8.3 types/chrono/::Utcrust-analyzer cargo chrono 0.4.45 offset/utc/Utc#>, |
| 41 | |
| 42 | #[cfg(feature = "time")] |
| 43 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::timerust-analyzer cargo sqlx-core 0.8.3 types/time/::Timerust-analyzer cargo time 0.3.55 time/Time#, |
| 44 | |
| 45 | #[cfg(feature = "time")] |
| 46 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::timerust-analyzer cargo sqlx-core 0.8.3 types/time/::Daterust-analyzer cargo time 0.3.55 date/Date#, |
| 47 | |
| 48 | #[cfg(feature = "time")] |
| 49 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::timerust-analyzer cargo sqlx-core 0.8.3 types/time/::PrimitiveDateTimerust-analyzer cargo time 0.3.55 PrimitiveDateTime#, |
| 50 | |
| 51 | #[cfg(feature = "time")] |
| 52 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::timerust-analyzer cargo sqlx-core 0.8.3 types/time/::OffsetDateTimerust-analyzer cargo time 0.3.55 offset_date_time/OffsetDateTime#, |
| 53 | |
| 54 | #[cfg(feature = "bigdecimal")] |
| 55 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::BigDecimalrust-analyzer cargo bigdecimal 0.4.10 BigDecimal#, |
| 56 | |
| 57 | #[cfg(feature = "rust_decimal")] |
| 58 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::Decimalrust-analyzer cargo rust_decimal 1.42.1 decimal/Decimal#, |
| 59 | |
| 60 | #[cfg(feature = "json")] |
| 61 | sqlxrust-analyzer cargo sqlx-core 0.8.3 crate/::typesrust-analyzer cargo sqlx-core 0.8.3 types/::JsonValuerust-analyzer cargo serde_json 1.0.151 value/Value#, |
| 62 | }, |
| 63 | ParamChecking::Weakrust-analyzer cargo sqlx-core 0.8.3 type_checking/ParamChecking#Weak#, |
| 64 | feature-types: info => info.__type_feature_gaterust-analyzer cargo sqlx-mysql 0.8.3 type_info/impl#[MySqlTypeInfo]__type_feature_gate().(), |
| 65 | ); |