You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure your repository similar to the following. If you want to know more
about the possible options to pass the repository, checkout the documentation
for Ecto.Adapters.SQLite. It will have
more information on what is configurable.
Type extensions allow custom data types to be stored and retrieved from an SQLite3 database.
This is done by implementing a module with the Ecto.Adapters.SQLite3.TypeExtension behaviour which maps types to encoder and decoder functions. Type extensions are activated by adding them to the ecto_sqlite3 configuration as a list of type extention modules assigned to the type_extensions key:
As of version 0.9, exqlite supports loading database engines at runtime rather than compiling sqlite3.c itself.
This can be used to support database level encryption via alternate engines such as SQLCipher
or the Official SEE extension. Once you have either of those projects installed
on your system, use the following environment variables during compilation:
# tell exqlite that we wish to use some other sqlite installation. this will prevent sqlite3.c and friends from compilingexport EXQLITE_USE_SYSTEM=1
# Tell exqlite where to find the `sqlite3.h` fileexport EXQLITE_SYSTEM_CFLAGS=-I/usr/local/include/sqlcipher
# tell exqlite which sqlite implementation to useexport EXQLITE_SYSTEM_LDFLAGS=-L/usr/local/lib -lsqlcipher
Once you have exqlite configured, you can use the :key option in the database config to enable encryption: