MCPcopy 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

startInternalServerFunction · 0.80
stopInternalServerFunction · 0.80
cli.tsFile · 0.80
stopHttpServerFunction · 0.80

Calls 2

closeMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected