MCPcopy Create free account
hub / github.com/chokcoco/iCSS / init

Method init

MCP/debug.js:15–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 }
14
15 async init() {
16 return new Promise((resolve, reject) => {
17 console.log('📂 Connecting to database...');
18
19 this.db = new Database.Database('./data/icss.db', (err) => {
20 if (err) {
21 console.error('❌ Database connection failed:', err.message);
22 reject(err);
23 return;
24 }
25
26 console.log('✅ Database connected');
27 this.loadSearchIndex().then(resolve).catch(reject);
28 });
29 });
30 }
31
32 async loadSearchIndex() {
33 return new Promise((resolve, reject) => {

Callers 1

runDebugTestsFunction · 0.95

Calls 1

loadSearchIndexMethod · 0.95

Tested by

no test coverage detected