pub enum PartitionBoundSpec<'a> {
In {
in_span: Span,
values: Vec<PartitionBoundExpr<'a>>,
},
FromTo {
from_span: Span,
from_values: Vec<PartitionBoundExpr<'a>>,
to_span: Span,
to_values: Vec<PartitionBoundExpr<'a>>,
},
WithModulusRemainder {
with_span: Span,
modulus_span: Span,
modulus: (u64, Span),
remainder_span: Span,
remainder: (u64, Span),
},
}Expand description
The partition bound specification for CREATE TABLE … PARTITION OF
Variants§
In
FOR VALUES IN (expr [, …]) — list partitioning
FromTo
FOR VALUES FROM (…) TO (…) — range partitioning
WithModulusRemainder
FOR VALUES WITH (MODULUS n, REMAINDER r) — hash partitioning
Trait Implementations§
Source§impl<'a> Clone for PartitionBoundSpec<'a>
impl<'a> Clone for PartitionBoundSpec<'a>
Source§fn clone(&self) -> PartitionBoundSpec<'a>
fn clone(&self) -> PartitionBoundSpec<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PartitionBoundSpec<'a>
impl<'a> Debug for PartitionBoundSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for PartitionBoundSpec<'a>
impl<'a> RefUnwindSafe for PartitionBoundSpec<'a>
impl<'a> Send for PartitionBoundSpec<'a>
impl<'a> Sync for PartitionBoundSpec<'a>
impl<'a> Unpin for PartitionBoundSpec<'a>
impl<'a> UnsafeUnpin for PartitionBoundSpec<'a>
impl<'a> UnwindSafe for PartitionBoundSpec<'a>
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