PaperTrail (paper_trail v0.11.2) View Source
Link to this section Summary
Functions
Deletes a record from the database with a related version insertion in one transaction
Same as delete/2 but returns only the model struct or raises if the changeset is invalid.
Inserts a record to the database with a related version insertion in one transaction
Same as insert/2 but returns only the model struct or raises if the changeset is invalid.
Updates a record from the database with a related version insertion in one transaction
Same as update/2 but returns only the model struct or raises if the changeset is invalid.
Link to this section Functions
delete(struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])
View SourceDeletes a record from the database with a related version insertion in one transaction
delete!(struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])
View SourceSame as delete/2 but returns only the model struct or raises if the changeset is invalid.
insert(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, ecto_options: []])
View SourceInserts a record to the database with a related version insertion in one transaction
insert!(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil, model_key: :model, version_key: :version, ecto_options: []])
View SourceSame as insert/2 but returns only the model struct or raises if the changeset is invalid.
update(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])
View SourceUpdates a record from the database with a related version insertion in one transaction
update!(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])
View SourceSame as update/2 but returns only the model struct or raises if the changeset is invalid.