pub enum UserDefinedTypeRangeOption {
Subtype(DataType),
SubtypeOpClass(ObjectName),
Collation(ObjectName),
Canonical(ObjectName),
SubtypeDiff(ObjectName),
MultirangeTypeName(ObjectName),
}Expand description
Options for PostgreSQL CREATE TYPE ... AS RANGE statement.
Range types are data types representing a range of values of some element type (called the range’s subtype). These options configure the behavior of the range type.
§PostgreSQL Documentation
See: https://www.postgresql.org/docs/current/sql-createtype.html
§Examples
CREATE TYPE int4range AS RANGE (
SUBTYPE = int4,
SUBTYPE_OPCLASS = int4_ops,
CANONICAL = int4range_canonical,
SUBTYPE_DIFF = int4range_subdiff
);Variants§
Subtype(DataType)
The element type that the range type will represent: SUBTYPE = subtype
SubtypeOpClass(ObjectName)
The operator class for the subtype: SUBTYPE_OPCLASS = subtype_operator_class
Collation(ObjectName)
Collation to use for ordering the subtype: COLLATION = collation
Canonical(ObjectName)
Function to convert range values to canonical form: CANONICAL = canonical_function
SubtypeDiff(ObjectName)
Function to compute the difference between two subtype values: SUBTYPE_DIFF = subtype_diff_function
MultirangeTypeName(ObjectName)
Name of the corresponding multirange type: MULTIRANGE_TYPE_NAME = multirange_type_name
Trait Implementations§
Source§impl Clone for UserDefinedTypeRangeOption
impl Clone for UserDefinedTypeRangeOption
Source§fn clone(&self) -> UserDefinedTypeRangeOption
fn clone(&self) -> UserDefinedTypeRangeOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserDefinedTypeRangeOption
impl Debug for UserDefinedTypeRangeOption
Source§impl<'de> Deserialize<'de> for UserDefinedTypeRangeOption
impl<'de> Deserialize<'de> for UserDefinedTypeRangeOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for UserDefinedTypeRangeOption
impl Display for UserDefinedTypeRangeOption
Source§impl Hash for UserDefinedTypeRangeOption
impl Hash for UserDefinedTypeRangeOption
Source§impl Ord for UserDefinedTypeRangeOption
impl Ord for UserDefinedTypeRangeOption
Source§fn cmp(&self, other: &UserDefinedTypeRangeOption) -> Ordering
fn cmp(&self, other: &UserDefinedTypeRangeOption) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for UserDefinedTypeRangeOption
impl PartialOrd for UserDefinedTypeRangeOption
Source§impl Visit for UserDefinedTypeRangeOption
impl Visit for UserDefinedTypeRangeOption
Source§impl VisitMut for UserDefinedTypeRangeOption
impl VisitMut for UserDefinedTypeRangeOption
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
VisitorMut. Read more