Carbonite.Change (Carbonite v0.1.0) View Source
A Carbonite.Change records a mutation on a database table.
INSERT statements lead to a Change where the new field contains the inserted row as a
JSON object while the old field is nil. UPDATE statements contain both old and new
fields, and DELETE statements only contain data in old.
Link to this section Summary
Link to this section Types
Specs
t() :: %Carbonite.Change{
__meta__: term(),
id: non_neg_integer(),
new: nil | map(),
old: nil | map(),
op: :insert | :update | :delete,
table_name: String.t(),
table_prefix: String.t(),
transaction: Ecto.Association.NotLoaded.t() | Carbonite.Transaction.t(),
transaction_id: term()
}