File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
111113Constructs a new ` DatabaseSync ` instance.
112114
@@ -119,6 +121,17 @@ added: v22.5.0
119121Closes the database connection. An exception is thrown if the database is not
120122open. 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
You can’t perform that action at this time.
0 commit comments