Skip to content

Commit 608af61

Browse files
committed
fixup! docs add
1 parent e46f739 commit 608af61

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/api/sqlite.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ added: v22.5.0
107107
* `open` {boolean} If `true`, the database is opened by the constructor. When
108108
this value is `false`, the database must be opened via the `open()` method.
109109
**Default:** `true`.
110+
* `allowLoadExtension` {boolean} If `true`, the `loadExtension` SQL function
111+
is enabled. **Default:** `false`.
110112

111113
Constructs a new `DatabaseSync` instance.
112114

@@ -119,6 +121,17 @@ added: v22.5.0
119121
Closes the database connection. An exception is thrown if the database is not
120122
open. This method is a wrapper around [`sqlite3_close_v2()`][].
121123

124+
### `database.loadExtension(path)`
125+
126+
<!-- YAML
127+
added: REPLACEME
128+
-->
129+
130+
* `path` {string} The path to the shared library to load.
131+
132+
Loads a shared library into the database connection. The `allowLoadExtension` option must be
133+
enabled when constructing the `DatabaseSync` instance.
134+
122135
### `database.exec(sql)`
123136

124137
<!-- YAML

0 commit comments

Comments
 (0)