SqlOption in sqlparser::ast - Rust

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),
}
Expand description

SQL option syntax used in table and server definitions.

§
§
§

Any option that consists of a key value pair where the value is an expression. e.g.

WITH(DISTRIBUTION = ROUND_ROBIN)

Fields

The option key identifier.

The expression value for the option.

§

Fields

§column_name: Ident

The partition column name.

Optional direction for the partition range (LEFT/RIGHT).

Values that define the partition boundaries.

Comment parameter (supports = and no = syntax)

§
§

§
§
§
§
§
§