pub enum CastTarget {
Show 19 variants
Int,
BigInt,
Float,
Text,
Bool,
Vector,
Date,
Timestamp,
Interval,
Timestamptz,
Json,
Jsonb,
RegType,
RegClass,
TextArray,
IntArray,
BigIntArray,
TsVector,
TsQuery,
}Variants§
Int
BigInt
Float
Text
Bool
Vector
Date
Timestamp
Interval
v7.9.25 — ::INTERVAL and ::TIMESTAMPTZ. mailrs follow-up
H3a. Engine reuses the existing runtime-interval / timestamp
paths (parse the text input, return the matching Value).
Timestamptz
Json
v7.9.25 — ::JSON and ::JSONB. SPG already has both
types (v7.9.0); the cast just routes Text→Json with the
requested OID for the wire layer.
Jsonb
RegType
v7.9.26 — ::regtype / ::regclass. Parsed for PG dump
compatibility; engine surfaces as Unsupported with a
hint to use SHOW TABLES or spg_table_ddl. mailrs F3b.
RegClass
TextArray
v7.10.11 — ::TEXT[]. Engine decodes the LHS Text into
the PG external array form {a,b,NULL}.
IntArray
v7.11.13 — ::INT[] / ::BIGINT[]. Decodes PG external
{1,2,3} or widens a TextArray whose elements are
integer-shaped.
BigIntArray
TsVector
v7.12.0 — ::tsvector / ::tsquery. Decodes the PG
external form text representation. Used by pg_dump output
and by WHERE col @@ 'term'::tsquery literal patterns.
TsQuery
Trait Implementations§
Source§impl Clone for CastTarget
impl Clone for CastTarget
Source§fn clone(&self) -> CastTarget
fn clone(&self) -> CastTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CastTarget
Source§impl Debug for CastTarget
impl Debug for CastTarget
Source§impl Display for CastTarget
impl Display for CastTarget
impl Eq for CastTarget
Source§impl PartialEq for CastTarget
impl PartialEq for CastTarget
Source§fn eq(&self, other: &CastTarget) -> bool
fn eq(&self, other: &CastTarget) -> bool
self and other values to be equal, and is used by ==.