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,
}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.
Trait Implementations§
impl Copy for Sequence
impl Eq for Sequence
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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