Skip to main content

declare_sequence

Function declare_sequence 

Source
pub fn declare_sequence(
    declaration: &SequenceDeclaration,
    data_type: &ColumnType,
    identity: bool,
) -> Result<DeclaredSequence, SQLError>
Expand description

Read the options of a new sequence of data_type, its written AS type or the type of the identity column it serves, in PostgreSQL’s order: the type, the increment, cycling, the maximum, the minimum, their ranges, the start, the restart and the cache, each checked as it is read. An omitted option takes the default its type and the direction of its increment give it.