database.close()
关闭数据库连接。如果数据库未打开,则会抛出异常。如果在执行语句时调用此方法(例如在用户定义函数、聚合函数、授权回调或 'sqlite.db.query' 订阅者内部),将抛出 ERR_INVALID_STATE 错误。此方法是 sqlite3_close_v2() 的一个封装。
🌐 Closes the database connection. An exception is thrown if the database is not
open. An ERR_INVALID_STATE error is thrown if the method is called while
a statement is executing, such as inside a user-defined function, an aggregate
function, an authorizer callback, or a 'sqlite.db.query' subscriber. This
method is a wrapper around sqlite3_close_v2().