You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 457e73f
Browse filesBrowse the repository at this point in the historyBrowse files
PR-URL: #54181
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Copy file name to clipboardExpand all lines: doc/api/sqlite.md
+101Lines changed: 101 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,70 @@ added: v22.5.0
155
155
Compiles a SQL statement into a [prepared statement][]. This method is a wrapper
156
156
around [`sqlite3_prepare_v2()`][].
157
157
158
+
### `database.createSession([options])`
159
+
160
+
*`options` {Object} The configuration options for the session.
161
+
*`table` {string} A specific table to track changes for. By default, changes to all tables are tracked.
162
+
*`db` {string} Name of the database to track. This is useful when multiple databases have been added using [`ATTACH DATABASE`][]. **Default**: `'main'`.
163
+
* Returns: {Session} A session handle.
164
+
165
+
Creates and attaches a session to the database. This method is a wrapper around [`sqlite3session_create()`][] and [`sqlite3session_attach()`][].
0 commit comments