session[Symbol.dispose]()


关闭会话。如果会话已经关闭,那么这不会有任何操作。如果会话当前正在生成更改集或补丁集,或者该方法是在 SQLite 调用的回调中被调用的,将会抛出 ERR_INVALID_STATE 错误,条件和 session.close() 相同。

🌐 Closes the session. If the session is already closed, then this is a no-op. An ERR_INVALID_STATE error is thrown if the session is currently generating a changeset or patchset, or if the method is called from a callback that SQLite invoked, under the same conditions as session.close().