pub enum SqlValue {
}Variants§
Bool(bool)
Int(i64)
Float(f64)
String(String)
Bytes(Vec<u8>)
Uuid(Uuid)
DateTime(DateTime<Utc>)
Json(Value)
Decimal(Box<dyn DecimalLike>)
Holds whichever concrete decimal type the originating schema chose
(cratestack#505 Direction 2 — rust_decimal::Decimal,
bigdecimal::BigDecimal, or any other DecimalLike
implementer), boxed rather than a fixed concrete type so two
schemas that chose different backends can share this one compiled
SqlValue without a Cargo-feature union collision. Unconditional —
no #[cfg] gate, since this variant no longer names a concrete
backend type at all.
Vector(Vec<f32>)
A Vector(n) field’s value (see docs/design/extensions.md
§6). Defined unconditionally — no pgvector dependency is
needed to hold a Vec<f32> — but only ever constructed by
generated code gated on the pgvector Cargo feature (#161’s
compile-time check), and only ever bound to a real column by
cratestack-sqlx’s own pgvector-gated encode path.