mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
import { PrismaClient } from '@prisma/client/edge';
|
|
import { withAccelerate } from '@prisma/extension-accelerate';
|
|
import { withOptimize } from '@prisma/extension-optimize';
|
|
|
|
declare global {
|
|
var prisma: PrismaClient | undefined;
|
|
}
|
|
|
|
export const db = new PrismaClient()
|
|
.$extends(withAccelerate())
|
|
.$extends(withOptimize());
|