We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/neverinfamous/db-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test-adapter.ts•832 B
/**
* Test Adapter Factory
*
* Provides a centralized adapter factory for tests.
* Uses NativeSqliteAdapter (better-sqlite3) for full feature support including:
* - FTS5 full-text search
* - Window functions
* - JSON/JSONB support
* - All SQLite extensions
*/
import { NativeSqliteAdapter } from "../../src/adapters/sqlite-native/NativeSqliteAdapter.js";
import type { SqliteAdapter as SqliteAdapterType } from "../../src/adapters/sqlite/SqliteAdapter.js";
/**
* Create a test adapter instance using NativeSqliteAdapter.
* This provides full SQLite functionality including FTS5.
*/
export function createTestAdapter(): SqliteAdapterType {
return new NativeSqliteAdapter() as unknown as SqliteAdapterType;
}
/**
* Type alias for the adapter interface used in tests.
*/
export type TestAdapter = SqliteAdapterType;