Phoenix.Sync.Writer.Context (Phoenix.Sync v0.5.1)

View Source

Provides context within callback functions.

Fields

  • index - the 0-indexed position of the current operation within the transaction
  • changes - the current Ecto.Multi changes so far
  • operation - the current Phoenix.Sync.Writer.Context.Operation
  • callback - the name of the current callback, :pre_apply or :post_apply
  • schema - the Ecto.Schema module associated with the current operation