We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jezweb/google-calendar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
index.ts•521 B
/**
* Drizzle ORM D1 Database Setup
*
* Factory pattern for Cloudflare Workers - D1 binding not available at module level
*/
import { drizzle, type DrizzleD1Database } from 'drizzle-orm/d1';
import * as schema from './schema';
export type Database = DrizzleD1Database<typeof schema>;
/**
* Create a Drizzle database instance from D1 binding
* Call this in request handlers, not at module level
*/
export function createDatabase(d1: D1Database): Database {
return drizzle(d1, { schema });
}
export { schema };