MCPcopy
hub / github.com/dqzboy/Docker-Proxy / markAsInitialized

Method markAsInitialized

hubcmdui/database/database.js:325–335  ·  view source on GitHub ↗

* 标记数据库已初始化

()

Source from the content-addressed store, hash-verified

323 * 标记数据库已初始化
324 */
325 async markAsInitialized() {
326 try {
327 await this.run(
328 'INSERT OR REPLACE INTO configs (key, value, type, description) VALUES (?, ?, ?, ?)',
329 ['db_initialized', 'true', 'boolean', '数据库初始化标记']
330 );
331 logger.info('数据库已标记为已初始化');
332 } catch (error) {
333 logger.error('标记数据库初始化状态失败:', error);
334 }
335 }
336
337 /**
338 * 关闭数据库连接

Callers 2

initializeSQLiteFunction · 0.80
initializeDatabaseFunction · 0.80

Calls 1

runMethod · 0.95

Tested by

no test coverage detected