Skip to content

Commit 154a1a8

Browse files
committed
Remove repeated impl true
1 parent bfbed00 commit 154a1a8

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎lib/ecto/adapters/sqlite3/connection.ex‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -470,32 +470,26 @@ defmodule Ecto.Adapters.SQLite3.Connection do
470470
end)
471471
end
472472

473-
@impl true
474473
def execute_ddl({_, %Index{concurrently: true}}) do
475474
raise ArgumentError, "`concurrently` is not supported with SQLite3"
476475
end
477476

478-
@impl true
479477
def execute_ddl({_, %Index{only: true}}) do
480478
raise ArgumentError, "`only` is not supported with SQLite3"
481479
end
482480

483-
@impl true
484481
def execute_ddl({_, %Index{include: [_ | _]}}) do
485482
raise ArgumentError, "`include` is not supported with SQLite3"
486483
end
487484

488-
@impl true
489485
def execute_ddl({_, %Index{using: x}}) when not is_nil(x) do
490486
raise ArgumentError, "`using` is not supported with SQLite3"
491487
end
492488

493-
@impl true
494489
def execute_ddl({_, %Index{nulls_distinct: x}}) when not is_nil(x) do
495490
raise ArgumentError, "`nulls_distinct` is not supported with SQLite3"
496491
end
497492

498-
@impl true
499493
def execute_ddl({:create, %Index{} = index}) do
500494
fields = Enum.map_intersperse(index.columns, ", ", &index_expr/1)
501495

@@ -515,7 +509,6 @@ defmodule Ecto.Adapters.SQLite3.Connection do
515509
]
516510
end
517511

518-
@impl true
519512
def execute_ddl({:create_if_not_exists, %Index{} = index}) do
520513
fields = Enum.map_intersperse(index.columns, ", ", &index_expr/1)
521514

@@ -535,7 +528,6 @@ defmodule Ecto.Adapters.SQLite3.Connection do
535528
]
536529
end
537530

538-
@impl true
539531
def execute_ddl({:drop, %Index{} = index}) do
540532
[
541533
[
@@ -545,17 +537,14 @@ defmodule Ecto.Adapters.SQLite3.Connection do
545537
]
546538
end
547539

548-
@impl true
549540
def execute_ddl({:drop, %Index{} = index, _mode}) do
550541
execute_ddl({:drop, index})
551542
end
552543

553-
@impl true
554544
def execute_ddl({:drop_if_exists, %Index{concurrently: true}}) do
555545
raise ArgumentError, "`concurrently` is not supported with SQLite3"
556546
end
557547

558-
@impl true
559548
def execute_ddl({:drop_if_exists, %Index{} = index}) do
560549
[
561550
[
@@ -565,12 +554,10 @@ defmodule Ecto.Adapters.SQLite3.Connection do
565554
]
566555
end
567556

568-
@impl true
569557
def execute_ddl({:drop_if_exists, %Index{} = index, _mode}) do
570558
execute_ddl({:drop_if_exists, index})
571559
end
572560

573-
@impl true
574561
def execute_ddl({:rename, %Table{} = current_table, %Table{} = new_table}) do
575562
[
576563
[
@@ -582,7 +569,6 @@ defmodule Ecto.Adapters.SQLite3.Connection do
582569
]
583570
end
584571

585-
@impl true
586572
def execute_ddl({:rename, %Table{} = current_table, old_col, new_col}) do
587573
[
588574
[
@@ -596,15 +582,12 @@ defmodule Ecto.Adapters.SQLite3.Connection do
596582
]
597583
end
598584

599-
@impl true
600585
def execute_ddl(string) when is_binary(string), do: [string]
601586

602-
@impl true
603587
def execute_ddl(keyword) when is_list(keyword) do
604588
raise ArgumentError, "SQLite3 adapter does not support keyword lists in execute"
605589
end
606590

607-
@impl true
608591
def execute_ddl({:create, %Index{} = index}) do
609592
fields = Enum.map_intersperse(index.columns, ", ", &index_expr/1)
610593

0 commit comments

Comments
 (0)