pub enum ColumnTypeName {
}Expand description
SQL-level type names. The mapping to the storage runtime’s DataType
happens in spg-engine — keeping spg-sql free of storage deps.
Variants§
SmallInt
Int
BigInt
Float
Text
Varchar(u32)
VARCHAR(N) — TEXT capped at N Unicode characters.
Char(u32)
CHAR(N) — TEXT right-padded with spaces to exactly N characters.
Bool
Vector
pgvector fixed-dimension VECTOR(N). v6.0.1 added the
USING <encoding> clause; omitting it surfaces as
encoding = VecEncoding::F32 (the pre-v6 default).
Numeric(u8, u8)
NUMERIC / NUMERIC(p) / NUMERIC(p, s) — exact decimal.
Bare NUMERIC and NUMERIC(p) both surface with scale=0.
Date
DATE — calendar day, no time-of-day component.
Timestamp
TIMESTAMP / MySQL DATETIME — instant with microsecond
precision.
Json
v4.9 JSON / JSONB — text-backed JSON document. No parse-
time validation; the engine round-trips the literal verbatim.
Trait Implementations§
Source§impl Clone for ColumnTypeName
impl Clone for ColumnTypeName
Source§fn clone(&self) -> ColumnTypeName
fn clone(&self) -> ColumnTypeName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnTypeName
Source§impl Debug for ColumnTypeName
impl Debug for ColumnTypeName
Source§impl Display for ColumnTypeName
impl Display for ColumnTypeName
impl Eq for ColumnTypeName
Source§impl PartialEq for ColumnTypeName
impl PartialEq for ColumnTypeName
Source§fn eq(&self, other: &ColumnTypeName) -> bool
fn eq(&self, other: &ColumnTypeName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnTypeName
Auto Trait Implementations§
impl Freeze for ColumnTypeName
impl RefUnwindSafe for ColumnTypeName
impl Send for ColumnTypeName
impl Sync for ColumnTypeName
impl Unpin for ColumnTypeName
impl UnsafeUnpin for ColumnTypeName
impl UnwindSafe for ColumnTypeName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more