Function value_type_of
pub fn value_type_of(decl: &str) -> Option<ValueType>Expand description
Map a declared SQLite column type to the engine’s [ValueType], following SQLite
type-affinity rules (with BOOLEAN/JSON special-cased, and the exact BIGINT/INT8
declarations mapped to the exact-i64 plane — design 226 §4.1). Returns None for
BLOB and untyped columns — the engine’s OwnedValue has no Blob variant, so we
reject rather than silently null them.
Other integer/NUMERIC columns map to Number, which the engine represents as f64 (Zero’s
single numeric type). Schema admission and live capture reject INTEGER cells that do not
round-trip exactly. Every integer through ±2^53 and selected larger values are exact; no
admitted cell is silently rounded. Declare BIGINT/INT8 when the full i64 domain is
required.