API Reference ash_events v#0.3.0
View SourceModules
Behaviour for generating advisory lock keys when inserting events for a given Ash-changeset. Must return a signed 64-bit integer, or two signed 32-bit integers in a list.
Default implementation of the AshEvents.AdvisoryLockKeyGenerator
behaviour.
Handles the attribute-strategy for multitenancy, if the tenant value used is an
integer or uuid. For other scenarios, users must implemeent a custom implementation
and declare it in their event-log resource configuration.
Behaviour for clearing records from the event log.
Wrapper for create actions that enables event tracking.
Wrapper for destroy actions that enables event tracking.
Extension to use on the Ash.Resource that will persist events.
Action module used by the event log resource to replay events.
Introspection helpers for AshEvents.EventLog
Adds a field (not relationship) on the event log resource that will be used to persist the actor primary key.
Validates that when multiple persist_actor_primary_key options are defined that they all allow_nil? true
Defines the events section for a resource.
Helper functions used by the action wrappers.
@moduledoc "Introspection helpers for AshEvents.Events
"
Removes all lifecycle hooks for an action. This change will be added during event replay, in order to disable any side-effects in the action.
Internal helpers for AshEvents.
Wrapper for update actions that enables event tracking.
Mix Tasks
Installs AshEvents into a project. Should be called with mix igniter.install ash_events