database.createSession([options])
-
options<Object> 会话的配置选项。¥
options<Object> The configuration options for the session.-
table<string> 用于跟踪更改的特定表。默认情况下,将跟踪对所有表的更改。¥
table<string> A specific table to track changes for. By default, changes to all tables are tracked. -
db<string> 要跟踪的数据库的名称。当使用ATTACH DATABASE添加多个数据库时,这很有用。默认值:'main'。¥
db<string> Name of the database to track. This is useful when multiple databases have been added usingATTACH DATABASE. Default:'main'.
-
-
返回:Session 会话句柄。
¥Returns: Session A session handle.
创建会话并将其附加到数据库。此方法是 sqlite3session_create() 和 sqlite3session_attach() 的封装器。
¥Creates and attaches a session to the database. This method is a wrapper around sqlite3session_create() and sqlite3session_attach().