pub enum PartitionBound {
Default,
Hash {
modulus: i32,
remainder: i32,
},
List(Vec<Option<String>>),
Range {
lower: Vec<RangeDatum>,
upper: Vec<RangeDatum>,
},
}Expand description
The bound of a partition, relpartbound.
Variants§
Default
DEFAULT.
Hash
FOR VALUES WITH (MODULUS m, REMAINDER r).
List(Vec<Option<String>>)
FOR VALUES IN (...): each constant in the form of the analyzer, or None for NULL.
Range
FOR VALUES FROM (...) TO (...).
Fields
§
lower: Vec<RangeDatum>The lower bound, one datum for each key column.
§
upper: Vec<RangeDatum>The upper bound, one datum for each key column.
Trait Implementations§
Source§impl Clone for PartitionBound
impl Clone for PartitionBound
Source§impl Debug for PartitionBound
impl Debug for PartitionBound
impl Eq for PartitionBound
Source§impl PartialEq for PartitionBound
impl PartialEq for PartitionBound
impl StructuralPartialEq for PartitionBound
Auto Trait Implementations§
impl Freeze for PartitionBound
impl RefUnwindSafe for PartitionBound
impl Send for PartitionBound
impl Sync for PartitionBound
impl Unpin for PartitionBound
impl UnsafeUnpin for PartitionBound
impl UnwindSafe for PartitionBound
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