Files
core2026/packages/infra/src/gamePrisma.ts
T

10 lines
594 B
TypeScript

import { PrismaClient as GamePrismaClient } from '../prisma/generated/game/index.js';
export { LogCategory, LogScope, Prisma as GamePrisma } from '../prisma/generated/game/index.js';
export type { PrismaClient as GamePrismaClient } from '../prisma/generated/game/index.js';
import type { PostgresConfig, PostgresConnector } from './postgres.js';
import { createPostgresConnector } from './postgres.js';
export const createGamePostgresConnector = (config: PostgresConfig): PostgresConnector<GamePrismaClient> =>
createPostgresConnector(config, (options) => new GamePrismaClient(options));