pub fn alter_declared_sequence(
declaration: &SequenceDeclaration,
definition: &SequenceDefinition,
current: i64,
identity: bool,
) -> Result<DeclaredSequence, SQLError>Expand description
Read the options of ALTER SEQUENCE, or of an identity column’s SET and RESTART, against an existing sequence whose definition is definition and whose next value is current, in the same order. An omitted option keeps its value, NO MINVALUE and NO MAXVALUE take the defaults again, a new type takes its own bounds for the bounds that were the old type’s, and the current value is checked against the bounds the options produce.