EctoHooks.Repo (ecto_hooks v1.0.0) View Source
This module provides an alternate interface for initializing EctoHooks.
Ordinarily, one would need to add the use EctoHooks statement to an Ecto.Repo
implementation module in one's application.
This module instead simply replaces the use Ecto.Repo, ... statement with the
following:
defmodule MyApp.Repo do
use EctoHooks.Repo,
otp_app: :my_app,
...
endAny paramters passed into use EctoHooks.Repo are simply forwarded to Ecto.Repo
and EctoHooks functionality is automatically included.
See the documentation to EctoHooks for more information.