Skip to content

Commit 2d0912f

Browse files
authored
Update README with Connection configuration (#276)
1 parent 03b30d8 commit 2d0912f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,14 @@ Basic.load_extension(conn, ExSqlean.path_for("re"))
194194
Basic.close(conn)
195195
```
196196
197+
It is also possible to load extensions using the `Connection` configuration. For example:
198+
199+
config :exqlite, load_extensions: [ "./priv/sqlite/\#{arch_dir}/rotate" ]
200+
201+
This method works with `Exqlite.Sqlite3`. For more info see the (Connection.connect/1)[https://hexdocs.pm/exqlite/Exqlite.Connection.html#connect/1]
202+
docs.
203+
204+
197205
## Why SQLite3
198206

199207
I needed an Ecto3 adapter to store time series data for a personal project. I

0 commit comments

Comments
 (0)