mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-01 15:03:27 +00:00
Fix Rust type for SQLite REAL (#1785)
REAL is stored as as 8-byte IEEE floating point number See https://www.sqlite.org/datatype3.html#storage_classes_and_datatypes
This commit is contained in:
parent
2e026cae67
commit
cc1ab90110
@ -1,11 +1,13 @@
|
||||
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,
|
||||
f32,
|
||||
f64,
|
||||
String,
|
||||
Vec<u8>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user