Available on crate feature
postgres_backend only.Expand description
PostgreSQL specific SQL types
Note: All types in this module can be accessed through diesel::sql_types
Structs§
- Array
- The
ArraySQL type. - CChar
- The
"char"SQL type. This is a PostgreSQL specific type. Used for e.g. setweight. Do not use in user tables. - Cidr
- The
CIDRSQL type. This type can only be used withfeature = "network-address"orfeature = "ipnet-address". - Citext
- The
CitextSQL type. This is a PostgreSQL specific type. - Inet
- The
INETSQL type. This type can only be used withfeature = "network-address"orfeature = "ipnet-address". - Jsonb
- The
jsonbSQL type. This type can only be used withfeature = "serde_json" - MacAddr
- The
MACADDRSQL type. - MacAddr8
- The
MACADDR8SQL type. - Money
- The PostgreSQL Money type.
- Multirange
- The
MultirangeSQL type. - Null
Value Treatment Enum - This is a wrapper for
NullValueTreatmentto represent null_value_treatment for jsonb_seet_lax: ‘raise_exception’ ‘use_json_null’ ‘delete_key’ ‘return_target’ used in functions jsonb_set_lax - Oid
- The
OIDSQL type. This is a PostgreSQL specific type. - PgLsn
- The
pg_lsnSQL type. This is a PostgreSQL specific type. Encodes a position in the PostgreSQL Write Ahead Log (WAL). - Range
- The
RangeSQL type. - Range
Bound Enum - This is a wrapper for
RangeBoundto represent range bounds: ‘[]’, ‘(]’, ‘[)’, ‘()’, used in functions int4range, int8range, numrange, tsrange, tstzrange, daterange. - Record
- The
Record(a.k.a. tuple) SQL type. - Timestamptz
- The “timestamp with time zone” SQL type, which PostgreSQL abbreviates
to
timestamptz. - Uuid
- The
UUIDSQL type. This type can only be used withfeature = "uuid"
Enums§
- Null
Value Treatment - Represent null_value_treatment for jsonb_seet_lax: ‘raise_exception’ ‘use_json_null’ ‘delete_key’ ‘return_target’ used in functions jsonb_seet_lax.
- Range
Bound - Represent postgres range bounds: ‘[]’, ‘(]’, ‘[)’, ‘()’, used in functions int4range, int8range, numrange, tsrange, tstzrange, daterange.