pub struct Sequence {
pub name: Slice,
pub drop: bool,
pub quiet: bool,
pub or_replace: bool,
pub temporary: bool,
pub cascade: bool,
pub options: Options,
pub owner: Slice,
}Expand description
CREATE SEQUENCE name options or DROP SEQUENCE name.
The options are settled here rather than in the binder, defaults and all, because that is where the pin settles them and every refusal of a bad combination is a parser error there.
Fields§
§name: SliceThe name, as a run of parts, outermost first.
drop: boolWhether this is a DROP rather than a CREATE.
quiet: boolWhether IF NOT EXISTS was written on a create or IF EXISTS on a drop.
or_replace: boolWhether OR REPLACE was written, which only a create can have.
temporary: boolWhether TEMP or TEMPORARY was written, which only a create can have.
cascade: boolWhether CASCADE was written, which only a drop can have.
options: OptionsWhat a create settled, and the defaults on a drop.
owner: SliceThe table or view an ALTER SEQUENCE ... OWNED BY names, as a run of parts, and empty for
anything else. An alter is a statement that is neither a drop nor has this empty.