paper_trail v0.8.1 PaperTrail

Link to this section Summary

Functions

Same as delete/2 but returns only the model struct or raises if the changeset is invalid

Deletes a record from 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

Inserts a record to 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

Updates a record from the database with a related version insertion in one transaction

Link to this section Functions

Link to this function delete!(struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Same as delete/2 but returns only the model struct or raises if the changeset is invalid.

Link to this function delete(struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Deletes a record from the database with a related version insertion in one transaction

Link to this function get_current_model(version)
Link to this function get_model_id(model)
Link to this function get_version(record)
Link to this function get_version(model_or_record, id_or_options)
Link to this function get_version(model, id, options)
Link to this function get_versions(record)
Link to this function get_versions(model_or_record, id_or_options)
Link to this function get_versions(model, id, options)
Link to this function insert!(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Same as insert/2 but returns only the model struct or raises if the changeset is invalid.

Link to this function insert(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Inserts a record to the database with a related version insertion in one transaction

Link to this function update!(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Same as update/2 but returns only the model struct or raises if the changeset is invalid.

Link to this function update(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil])

Updates a record from the database with a related version insertion in one transaction