Skip to main content
Glama
test-db.js•701 B
import sqlite3 from 'sqlite3'; import { open } from 'sqlite'; import path from 'path'; import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); async function testDB() { const db = await open({ filename: path.resolve(__dirname, '../../data/workflow.db'), driver: sqlite3.Database }); const docs = await db.all('SELECT id, title, doc_type FROM documents LIMIT 3'); console.log('📚 Documents in database:'); docs.forEach(doc => { console.log(` ${doc.id}: ${doc.title} (${doc.doc_type})`); }); await db.close(); console.log('✅ Database test complete!'); } testDB().catch(console.error);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/foswmine/workflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server