Skip to content

Commit 123d137

Browse files
authored
chore: Add @impl true to all callback functions in generated Repo module
All functions such as `installed_extensions/0` and `min_pg_version/0` are callbacks, and should be marked as such
1 parent a8e385e commit 123d137

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mix/tasks/ash_postgres.install.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ if Code.ensure_loaded?(Igniter) do
571571
_ ->
572572
{:ok,
573573
Igniter.Code.Common.add_code(zipper, """
574+
@impl true
574575
def installed_extensions do
575576
# Add extensions here, and the migration generator will install them.
576577
["ash-functions"]
@@ -589,6 +590,7 @@ if Code.ensure_loaded?(Igniter) do
589590
Igniter.Code.Common.add_code(zipper, """
590591
# Don't open unnecessary transactions
591592
# will default to `false` in 4.0
593+
@impl true
592594
def prefer_transaction? do
593595
false
594596
end
@@ -604,6 +606,7 @@ if Code.ensure_loaded?(Igniter) do
604606
_ ->
605607
{:ok,
606608
Igniter.Code.Common.add_code(zipper, """
609+
@impl true
607610
def min_pg_version do
608611
%Version{major: #{version.major}, minor: #{version.minor}, patch: #{version.patch}}
609612
end

0 commit comments

Comments
 (0)