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

Method checkTable

MCP/test-inspiration.js:37–52  ·  view source on GitHub ↗
(tableName)

Source from the content-addressed store, hash-verified

35 }
36
37 checkTable(tableName) {
38 return new Promise((resolve, reject) => {
39 this.db.get(
40 `SELECT COUNT(*) as count FROM ${tableName}`,
41 (err, row) => {
42 if (err) {
43 console.error(`❌ Table ${tableName} error:`, err.message);
44 reject(err);
45 } else {
46 console.log(`✅ Table ${tableName}: ${row.count} records`);
47 resolve(row.count);
48 }
49 }
50 );
51 });
52 }
53
54 async testSearchFunctionality() {
55 console.log('\n🔍 Testing search functionality...\n');

Callers 1

testDatabaseIntegrityMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected