File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,9 @@ The `Exqlite` module usage is fairly straight forward.
112
112
``` elixir
113
113
# We'll just keep it in memory right now
114
114
{:ok , conn} = Exqlite .open (" :memory:" )
115
+ :ok = Exqlite .execute (conn, " pragma foreign_keys=on" )
116
+ :ok = Exqlite .execute (conn, " pragma journal_mode=wal" )
117
+ :ok = Exqlite .execute (conn, " pragma busy_timeout=5000" )
115
118
116
119
# Create the table
117
120
:ok = Exqlite .execute (conn, " create table test (id integer primary key, stuff text)" )
@@ -152,6 +155,8 @@ A selection of precompiled extensions for popular CPU types / architectures is a
152
155
153
156
``` elixir
154
157
{:ok , conn} = Exqlite .open (" :memory:" )
158
+ :ok = Exqlite .execute (conn, " pragma foreign_keys=on" )
159
+
155
160
:ok = Exqlite .enable_load_extension (conn)
156
161
157
162
# load the regexp extension - https://github.com/nalgeon/sqlean/blob/main/docs/re.md
You can’t perform that action at this time.
0 commit comments