import { DummyDriver, Kysely, PostgresAdapter, PostgresIntrospector, PostgresQueryCompiler, } from "kysely"; import { type DB as Database } from "@langfuse/shared"; export const DB = new Kysely({ dialect: { createAdapter: () => new PostgresAdapter(), createDriver: () => new DummyDriver(), createIntrospector: (db) => new PostgresIntrospector(db), createQueryCompiler: () => new PostgresQueryCompiler(), }, }); // prisma needs to be exported from the package which does migrations. // The prisma package contains the generated schema and is exported with the PrismaClient.