SequenceOptions in sqlparser::ast - Rust

Enum SequenceOptions 

Source

pub enum SequenceOptions {
    IncrementBy(Expr, bool),
    MinValue(Option<Expr>),
    MaxValue(Option<Expr>),
    StartWith(Expr, bool),
    Cache(Expr),
    Cycle(bool),
}
Expand description

Can use to describe options in create sequence or table column type identity

[ INCREMENT [ BY ] increment ]
    [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
    [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
§

INCREMENT [BY] <expr> option; second value indicates presence of BY keyword.

§

MINVALUE <expr> or NO MINVALUE.

§

MAXVALUE <expr> or NO MAXVALUE.

§

START [WITH] <expr>; second value indicates presence of WITH.

§

CACHE <expr> option.

§

CYCLE or NO CYCLE option.

§
§
§
§
§
§