ex_audit v0.1.0 ExAudit.Repo behaviour View Source

Link to this section Summary

Callbacks

Gathers the version history for a single entity, ordered by the time the changes happened from oldest to newest

Undoes the changes made in the given version, as well as all of the following versions

Link to this section Callbacks

Link to this callback history(struct, opts) View Source
history(struct(), opts :: list()) :: [version :: struct()]

Gathers the version history for a single entity, ordered by the time the changes happened from oldest to newest.

Link to this callback revert(version, opts) View Source
revert(version :: struct(), opts :: list()) :: {:ok, struct()}

Undoes the changes made in the given version, as well as all of the following versions.

Inserts a new version entry in the process, with the :rollback flag set to true