Class TombstoneManager

Constructors

Methods

  • Create a tombstone for records about to be deleted. Call this INSTEAD of executing the DELETE.

    Parameters

    • tableName: string

      The table the records belong to.

    • whereClause: string

      The WHERE clause from the DELETE statement.

    • parameters: unknown[] = []

      Parameters for the WHERE clause.

    • reason: string = 'deleted'

      Reason for deletion.

    • initiator: string = 'system'

      Who initiated the deletion (agent ID or 'human').

    Returns Promise<TombstoneRecord[]>