Fort.AuditedMulti (fort_audit v0.1.0)

Copy Markdown

Opaque wrapper around Ecto.Multi that enforces audit step presence.

Only an AuditedMulti with at least one audit step can be passed to Fort.Audit.transact/4. Business steps are added to the underlying Ecto.Multi via the multi field or standard Ecto.Multi.* pipes.

Summary

Functions

Returns the list of audit step names.

Returns the underlying Ecto.Multi.

Types

t()

@type t() :: %Fort.AuditedMulti{audit_steps: [atom()], multi: term()}

Functions

audit_steps(audited_multi)

@spec audit_steps(t()) :: [atom()]

Returns the list of audit step names.

multi(audited_multi)

@spec multi(t()) :: Ecto.Multi.t()

Returns the underlying Ecto.Multi.