Class RevisionManager

Constructors

Methods

  • Capture the current state of records that are about to be updated. Call this BEFORE the UPDATE executes.

    Parameters

    • tableName: string

      The table being updated.

    • whereClause: string

      The WHERE clause from the UPDATE statement (without "WHERE").

    • parameters: unknown[] = []

      Parameters for the WHERE clause.

    Returns Promise<RevisionRecord[]>