Skip to main content

Module types

Module types 

Source
Expand description

Value conversions between limbo and oxisql_core.

§Mapping table

Limbo limbo::ValueOxiSQL 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>)
NullValue::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::Value into a limbo::Value.
limbo_to_core
Convert a single limbo::Value into an oxisql_core::Value.
limbo_to_core_typed
Convert a single limbo::Value into a (possibly richer) oxisql_core::Value using an optional declared SQL type hint.
rewrite_params
Rewrite OxiSQL-style $N positional placeholders to SQLite ? placeholders, returning the reordered parameter list.