prorm API Reference
    Preparing search index...

    Interface CreateSequenceOptions

    A named sequence: its start, increment, bounds and caching.

    interface CreateSequenceOptions {
        start?: number;
        increment?: number;
        minValue?: number;
        maxValue?: number;
        cycle?: boolean;
        cache?: number;
        ifNotExists?: boolean;
    }
    Index
    start?: number

    Value the sequence starts at (default 1)

    increment?: number

    Amount added on each call (default 1)

    minValue?: number

    Minimum value

    maxValue?: number

    Maximum value

    cycle?: boolean

    Wrap around when the max/min is reached

    cache?: number

    Number of values to pre-allocate (Oracle/Postgres CACHE)

    ifNotExists?: boolean

    Emit IF NOT EXISTS where supported