@@ -58,6 +58,7 @@ defmodule Exqlite.Connection do
58
58
59
59
@ type connection_opt ( ) ::
60
60
{ :database , String . t ( ) }
61
+ | { :mode , :readwrite | :readonly | :readonly_nomutex }
61
62
| { :journal_mode , journal_mode ( ) }
62
63
| { :temp_store , temp_store ( ) }
63
64
| { :synchronous , synchronous ( ) }
@@ -91,7 +92,8 @@ defmodule Exqlite.Connection do
91
92
* `:database` - The path to the database. In memory is allowed. You can use
92
93
`:memory` or `":memory:"` to designate that.
93
94
* `:mode` - use `:readwrite` to open the database for reading and writing
94
- or `:readonly` to open it in read-only mode. `:readwrite` will also create
95
+ , `:readonly` to open it in read-only mode or `:readonly_nomutex` to open
96
+ it in read-only with nomutex mode. `:readwrite` will also create
95
97
the database if it doesn't already exist. Defaults to `:readwrite`.
96
98
* `:journal_mode` - Sets the journal mode for the sqlite connection. Can be
97
99
one of the following `:delete`, `:truncate`, `:persist`, `:memory`,
@@ -159,8 +161,8 @@ defmodule Exqlite.Connection do
159
161
"./priv/sqlite/\# {arch_dir}/vss0"
160
162
]
161
163
```
162
- * `:before_disconnect` - A function to run before disconnect, either a
163
- 2-arity fun or `{module, function, args}` with the close reason and
164
+ * `:before_disconnect` - A function to run before disconnect, either a
165
+ 2-arity fun or `{module, function, args}` with the close reason and
164
166
`t:Exqlite.Connection.t/0` prepended to `args` or `nil` (default: `nil`)
165
167
166
168
For more information about the options above, see [sqlite documentation][1]
0 commit comments