Enum sql::func::TypeCategory [−][src]
pub enum TypeCategory {
Array,
Bool,
DateTime,
List,
Numeric,
Pseudo,
String,
Timespan,
UserDefined,
}
Expand description
Mirrored from PostgreSQL’s typcategory
.
Note that Materialize also uses a number of pseudotypes when planning, but
we have yet to need to integrate them with TypeCategory
.
Variants
Array
Bool
DateTime
List
Numeric
Pseudo
String
Timespan
UserDefined
Implementations
Extracted from PostgreSQL 9.6.
SELECT array_agg(typname), typcategory
FROM pg_catalog.pg_type
WHERE typname IN (
'bool', 'bytea', 'date', 'float4', 'float8', 'int4', 'int8', 'interval', 'jsonb',
'numeric', 'text', 'time', 'timestamp', 'timestamptz'
)
GROUP BY typcategory
ORDER BY typcategory;
Extracted from PostgreSQL 9.6.
ⓘ
SELECT typcategory, typname, typispreferred
FROM pg_catalog.pg_type
WHERE typispreferred = true
ORDER BY typcategory;
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeCategory
impl Send for TypeCategory
impl Sync for TypeCategory
impl Unpin for TypeCategory
impl UnwindSafe for TypeCategory
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more