aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-prisma/packages/database/src/client.ts
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
commit94071d7ce16c56641d67d488e2bac6be84ffe731 (patch)
treed837b71575aba805e18b3db3d056a106d81818fe /examples/with-prisma/packages/database/src/client.ts
parent9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff)
downloadHydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz
HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip
chore: delete useless files
Diffstat (limited to 'examples/with-prisma/packages/database/src/client.ts')
-rw-r--r--examples/with-prisma/packages/database/src/client.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/examples/with-prisma/packages/database/src/client.ts b/examples/with-prisma/packages/database/src/client.ts
deleted file mode 100644
index 481d7a9..0000000
--- a/examples/with-prisma/packages/database/src/client.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { PrismaClient } from "@prisma/client";
-
-declare global {
- var prisma: PrismaClient | undefined;
-}
-
-export const prisma = global.prisma || new PrismaClient();
-
-if (process.env.NODE_ENV !== "production") global.prisma = prisma;
-
-export * from "@prisma/client";