prorm API Reference
    Preparing search index...

    Function buildSetSequenceValueSQL

    • Set a sequence's current value.

      The operation a bulk load needs: rows inserted with explicit ids leave the sequence behind them, and the next insert fails on a duplicate key. This is the fix, and it had no API.

      Parameters

      • sequence: string
      • value: number
      • dialect: string
      • quoteTable: (t: string) => string
      • isCalled: boolean = true

        true (default) means the next value is value + 1; false means the next value is value itself.

      Returns string