forked from ZennerIoT/ex_audit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Ecto v3.4.2 and rewrite ExAudit.Repo to extend Ecto.Repo
This is a breaking change to support ecto and ecto_sql ~> 3.4 and at the same time to actually use ExAudit.Repo with Ecto.Repo. The Ecto.Repo @callback implementations are overriden to add version tracking if the given struct or changeset is in the list of :tracked_schemas specified in the config or call the original Ecto.Repo implementation otherwise.
- Loading branch information
Showing
6 changed files
with
212 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
defmodule ExAudit.Test.Repo do | ||
use ExAudit.Repo, otp_app: :ex_audit, adapter: Ecto.Adapters.Postgres | ||
use Ecto.Repo, | ||
otp_app: :ex_audit, | ||
adapter: Ecto.Adapters.Postgres | ||
|
||
use ExAudit.Repo | ||
end |
Oops, something went wrong.