Carbonite.Query.transactions

You're seeing just the function transactions, go back to Carbonite.Query module for more information.
Link to this function

transactions(opts \\ [])

View Source (since 0.3.1)

Specs

transactions([transactions_option()]) :: Ecto.Query.t()

Returns an Ecto.Query that can be used to select transactions from the database.

Examples

Carbonite.Query.transactions()
|> MyApp.Repo.all()

# Preload changes
Carbonite.Query.transactions(preload: :changes)
|> MyApp.Repo.all()

# Same
Carbonite.Query.transactions(preload: true)
|> MyApp.Repo.all()

Options

  • carbonite_prefix defines the audit trail's schema, defaults to "carbonite_default"
  • preload can be used to preload the changes