-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
This key doesn't seem to work when I pass the value ":memory:". The code below works if I use any other name.
defmodule SqilteConn do
def start do
Exqlite.Sqlite3.open(":memory:")
end
def create_table(conn) do
Exqlite.Sqlite3.execute(
conn,
"CREATE TABLE IF NOT EXISTS csv (
id integer primary key, ....)
')
end
end
{:ok, conn} = SqilteConn.start()
SqilteConn.create_table(conn,)
defmodule Repo do
use Ecto.Repo, adapter: Ecto.Adapters.SQLite3, otp_app: :noop
end
defmodule Airport do
use Ecto.schema
...
end
{:ok, pid} = Repo.start_link(database: ":memory:", default_chunk_size: 100)
Repo.all(Airport)
returns:
** (Exqlite.Error) no such table: csv
instead of [].
Metadata
Metadata
Assignees
Labels
No labels