mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: Actually use AshPostgres.Repo
behaviour (#129)
This commit is contained in:
parent
82ae1d8754
commit
d0bc394e36
1 changed files with 4 additions and 2 deletions
|
@ -52,9 +52,9 @@ defmodule AshPostgres.Repo do
|
|||
@doc "Return a list of all schema names (only relevant for a multitenant implementation)"
|
||||
@callback all_tenants() :: [String.t()]
|
||||
@doc "The path where your tenant migrations are stored (only relevant for a multitenant implementation)"
|
||||
@callback tenant_migrations_path() :: String.t()
|
||||
@callback tenant_migrations_path() :: String.t() | nil
|
||||
@doc "The path where your migrations are stored"
|
||||
@callback migrations_path() :: String.t()
|
||||
@callback migrations_path() :: String.t() | nil
|
||||
@doc "The default prefix(postgres schema) to use when building queries"
|
||||
@callback default_prefix() :: String.t()
|
||||
@doc "Allows overriding a given migration type for *all* fields, for example if you wanted to always use :timestamptz for :utc_datetime fields"
|
||||
|
@ -68,6 +68,8 @@ defmodule AshPostgres.Repo do
|
|||
adapter: Ecto.Adapters.Postgres,
|
||||
otp_app: otp_app
|
||||
|
||||
@behaviour AshPostgres.Repo
|
||||
|
||||
defoverridable insert: 2, insert: 1, insert!: 2, insert!: 1
|
||||
|
||||
def installed_extensions, do: []
|
||||
|
|
Loading…
Reference in a new issue