mirror of
https://github.com/ash-project/ash_archival.git
synced 2024-09-20 05:22:56 +12:00
20 lines
407 B
Elixir
20 lines
407 B
Elixir
defmodule AshArchival.TestRepo do
|
|
@moduledoc false
|
|
use AshPostgres.Repo,
|
|
otp_app: :ash_archival
|
|
|
|
def on_transaction_begin(data) do
|
|
send(self(), data)
|
|
end
|
|
|
|
def installed_extensions do
|
|
["ash-functions"]
|
|
end
|
|
|
|
def min_pg_version do
|
|
case System.get_env("PG_VERSION") do
|
|
nil -> %Version{major: 16, minor: 0, patch: 0}
|
|
version -> Version.parse!(version)
|
|
end
|
|
end
|
|
end
|