MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / delete

Method delete

komari/komari.ts:104–114  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

102
103 // 删除配置
104 static delete(key: string): void {
105 this.init();
106 if (!this.db) return;
107
108 try {
109 const stmt = this.db.prepare("DELETE FROM config WHERE key = ?");
110 stmt.run(key);
111 } catch (error) {
112 console.error("删除Komari配置失败:", error);
113 }
114 }
115
116 // 关闭数据库连接
117 static close(): void {

Callers 4

cleanupMethod · 0.45
getRandomVideoMethod · 0.45
handleKomariRequestFunction · 0.45
processKeywordMethod · 0.45

Calls 3

initMethod · 0.95
runMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected