Enum SqlOption
pub enum SqlOption {
Clustered(TableOptionsClustered),
Ident(Ident),
KeyValue {
key: Ident,
value: Expr,
},
Partition {
column_name: Ident,
range_direction: Option<PartitionRangeDirection>,
for_values: Vec<Expr>,
},
Comment(CommentDef),
TableSpace(TablespaceOption),
NamedParenthesizedList(NamedParenthesizedList),
}Variants§
Clustered(TableOptionsClustered)
Clustered represents the clustered version of table storage for MSSQL.
Ident(Ident)
Single identifier options, e.g. HEAP for MSSQL.
KeyValue
Any option that consists of a key value pair where the value is an expression. e.g.
WITH(DISTRIBUTION = ROUND_ROBIN)
Partition
One or more table partitions and represents which partition the boundary values belong to, e.g.
PARTITION (id RANGE LEFT FOR VALUES (10, 20, 30, 40))
Comment(CommentDef)
Comment parameter (supports = and no = syntax)
TableSpace(TablespaceOption)
MySQL TableSpace option https://dev.mysql.com/doc/refman/8.4/en/create-table.html
NamedParenthesizedList(NamedParenthesizedList)
An option representing a key value pair, where the value is a parenthesized list and with an optional name e.g.
UNION = (tbl_name[,tbl_name]…) https://dev.mysql.com/doc/refman/8.4/en/create-table.html ENGINE = ReplicatedMergeTree(‘/table_name’,‘{replica}’, ver) https://clickhouse.com/docs/engines/table-engines/mergetree-family/replication ENGINE = SummingMergeTree([columns]) https://clickhouse.com/docs/engines/table-engines/mergetree-family/summingmergetree
Trait Implementations§
§impl Ord for SqlOption
impl Ord for SqlOption
§impl PartialOrd for SqlOption
impl PartialOrd for SqlOption
§impl VisitMut for SqlOption
impl VisitMut for SqlOption
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq for SqlOption
impl StructuralPartialEq for SqlOption
Auto Trait Implementations§
impl Freeze for SqlOption
impl RefUnwindSafe for SqlOption
impl Send for SqlOption
impl Sync for SqlOption
impl Unpin for SqlOption
impl UnwindSafe for SqlOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.