/
germanubis
/
sqlx
ΠΠ±Π·ΠΎΡ
ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
ΠΠΎΠΉΡΠΈ
/
germanubis
/
sqlx
ΠΠΎΠ΄
ΠΠ°ΠΏΡΠΎΡΡ
0
ΠΠ°Π΄Π°ΡΠΈ
ΠΠΈΠΊΠΈ
ΠΠ°ΠΊΠ΅ΡΡ
0
Π Π΅Π»ΠΈΠ·Ρ
0
ΠΠ½Π°Π»ΠΈΡΠΈΠΊΠ°
ΠΠ΅Π·ΠΎΠΏΠ°ΡΠ½ΠΎΡΡΡ
v0.6.3
sqlx-macros/src/database/sqlite.rs
25 ΡΡΡΠΎΠΊ
708 B
Pruthvikar Reddy
Fix Rust type for SQLite REAL (#1785)
15 Π°ΠΏΡ 2022, 01:05
ΠΠ΅ Π²Π΅ΡΠΈΡΠΈΡΠΈΡΠΎΠ²Π°Π½
15 Π°ΠΏΡ 2022, 01:05
cc1ab90
ΠΠΎΠ΄
ΠΠ²ΡΠΎΡΡΡΠ²ΠΎ
Π ΡΡΠΌ ΠΊΠΎΠ΄?
use sqlx_core as sqlx; // f32 is not included below as REAL represents a floating point value // stored as an 8-byte IEEE floating point number // For more info see: https://www.sqlite.org/datatype3.html#storage_classes_and_datatypes impl_database_ext! { sqlx::sqlite::Sqlite { bool, i32, i64, f64, String, Vec<u8>, #[cfg(feature = "chrono")] sqlx::types::chrono::NaiveDateTime, #[cfg(feature = "chrono")] sqlx::types::chrono::DateTime<sqlx::types::chrono::Utc> | sqlx::types::chrono::DateTime<_>, }, ParamChecking::Weak, feature-types: _info => None, row = sqlx::sqlite::SqliteRow, name = "SQLite" }