Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChatLab/ChatLab
/ closeAll
Method
closeAll
packages/node-runtime/src/database-manager.ts:172–177 ·
view source on GitHub ↗
* 关闭所有数据库连接
()
Source
from the content-addressed store, hash-verified
170
* 关闭所有数据库连接
171
*/
172
closeAll(): void {
173
for
(
const
[id, adapter] of this.cache) {
174
adapter.close()
175
this.cache.delete(id)
176
}
177
}
178
179
/**
180
* 列举数据库目录下的所有聊天会话 ID
Callers
5
database-manager.test.ts
File · 0.80
startInternalServer
Function · 0.80
stopInternalServer
Function · 0.80
cli.ts
File · 0.80
stopHttpServer
Function · 0.80
Calls
2
close
Method · 0.65
delete
Method · 0.65
Tested by
no test coverage detected