Skip to content

Commit 17b79b1

Browse files
committed
rename adapter from Exqlite to SQLite3
1 parent 9d6f14c commit 17b79b1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/ecto/adapters/exqlite.ex renamed to lib/ecto/adapters/sqlite3.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
defmodule Ecto.Adapters.Exqlite do
1+
defmodule Ecto.Adapters.SQLite3 do
22
use Ecto.Adapters.SQL,
33
driver: :exqlite
44

55
@behaviour Ecto.Adapter.Storage
66
@behaviour Ecto.Adapter.Structure
77

8-
alias Ecto.Adapters.Exqlite.Codec
8+
alias Ecto.Adapters.SQLite3.Codec
99

1010
@impl Ecto.Adapter.Storage
1111
def storage_down(options) do
@@ -207,7 +207,7 @@ defmodule Ecto.Adapters.Exqlite do
207207
Your config/*.exs file should have something like this in it:
208208
209209
config :my_app, MyApp.Repo,
210-
adapter: Ecto.Adapters.Exqlite,
210+
adapter: Ecto.Adapters.SQLite3,
211211
database: "/path/to/sqlite/database"
212212
"""
213213
end

lib/ecto/adapters/exqlite/codec.ex renamed to lib/ecto/adapters/sqlite3/codec.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Ecto.Adapters.Exqlite.Codec do
1+
defmodule Ecto.Adapters.SQLite3.Codec do
22
def bool_decode(nil), do: {:ok, nil}
33
def bool_decode(0), do: {:ok, false}
44
def bool_decode("0"), do: {:ok, false}

lib/ecto/adapters/exqlite/connection.ex renamed to lib/ecto/adapters/sqlite3/connection.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Ecto.Adapters.Exqlite.Connection do
1+
defmodule Ecto.Adapters.SQLite3.Connection do
22
@behaviour Ecto.Adapters.SQL.Connection
33

44
alias Ecto.Migration.Constraint
@@ -10,7 +10,7 @@ defmodule Ecto.Adapters.Exqlite.Connection do
1010
alias Ecto.Query.QueryExpr
1111
alias Ecto.Query.WithExpr
1212

13-
import Ecto.Adapters.Exqlite.DataType
13+
import Ecto.Adapters.SQLite3.DataType
1414

1515
@parent_as __MODULE__
1616
@connect_buffer 50

lib/ecto/adapters/exqlite/data_type.ex renamed to lib/ecto/adapters/sqlite3/data_type.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Ecto.Adapters.Exqlite.DataType do
1+
defmodule Ecto.Adapters.SQLite3.DataType do
22
# Simple column types. Note that we ignore options like :size, :precision,
33
# etc. because columns do not have types, and SQLite will not coerce any
44
# stored value. Thus, "strings" are all text and "numerics" have arbitrary

0 commit comments

Comments
 (0)