Method: Dbwatcher::Storage::TableStorage#find_changes_by_operation

Defined in:
lib/dbwatcher/storage/table_storage.rb

#find_changes_by_operation(table_name, operation, limit: DEFAULT_CHANGE_LIMIT) ⇒ Array<Hash>

Finds changes for a table with a specific operation

Parameters:

  • table_name (String)

    name of the table

  • operation (String)

    operation type (INSERT, UPDATE, DELETE)

  • limit (Integer) (defaults to: DEFAULT_CHANGE_LIMIT)

    maximum number of changes to return

Returns:

  • (Array<Hash>)

    filtered change records



82
83
84
# File 'lib/dbwatcher/storage/table_storage.rb', line 82

def find_changes_by_operation(table_name, operation, limit: DEFAULT_CHANGE_LIMIT)
  find_changes(table_name, operation: operation, limit: limit)
end