From 2d0912fc295e7ee99571ed1903cc991fbf63c4a5 Mon Sep 17 00:00:00 2001 From: andyl Date: Tue, 16 Jan 2024 11:00:18 -0800 Subject: [PATCH] Update README with `Connection` configuration (#276) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5dacb50..994c7b3 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,14 @@ Basic.load_extension(conn, ExSqlean.path_for("re")) Basic.close(conn) ``` +It is also possible to load extensions using the `Connection` configuration. For example: + + config :exqlite, load_extensions: [ "./priv/sqlite/\#{arch_dir}/rotate" ] + +This method works with `Exqlite.Sqlite3`. For more info see the (Connection.connect/1)[https://hexdocs.pm/exqlite/Exqlite.Connection.html#connect/1] +docs. + + ## Why SQLite3 I needed an Ecto3 adapter to store time series data for a personal project. I