Sqlite.Ecto2 v2.0.0-dev.6 Sqlite.Ecto2
Ecto Adapter module for SQLite.
It uses Sqlitex and Esqlite for accessing the SQLite database.
Features
Options
There are a limited number of options available because SQLite is so simple to use.
Compile time options
These options should be set in the config file and require recompilation in order to make an effect.
:adapter
- The adapter name, in this case,Sqlite.Ecto2
:timeout
- The default timeout to use on queries, defaults to5000
Connection options
:database
- This option can take the form of a path to the SQLite database file or":memory:"
for an in-memory database. See the SQLite docs for more options such as shared memory caches.:after_connect
- A{mod, fun, args}
to be invoked after a connection is established