Expand description
Value conversions between limbo and oxisql_core.
§Mapping table
Limbo limbo::Value | OxiSQL oxisql_core::Value |
|---|---|
Integer(i64) | Value::I64(i64) |
Real(f64) | Value::F64(f64) |
Text(String) | Value::Text(String) |
Blob(Vec<u8>) | Value::Blob(Vec<u8>) |
Null | Value::Null |
The reverse mapping (OxiSQL → Limbo) is used when binding $N parameters
after they have been rewritten to ? placeholders by rewrite_params.
Rich OxiSQL types that have no Limbo counterpart (Timestamp, Date, Time,
Uuid, Decimal, Json) are stored as their string or integer representations.
When the column’s declared SQL type is known, limbo_to_core_typed can
produce richer typed oxisql_core::Value variants instead of the raw storage-class
representations.
Functions§
- core_
to_ limbo - Convert an
oxisql_core::Valueinto alimbo::Value. - limbo_
to_ core - Convert a single
limbo::Valueinto anoxisql_core::Value. - limbo_
to_ core_ typed - Convert a single
limbo::Valueinto a (possibly richer)oxisql_core::Valueusing an optional declared SQL type hint. - rewrite_
params - Rewrite OxiSQL-style
$Npositional placeholders to SQLite?placeholders, returning the reordered parameter list.