Antonin
Antonin
Explore posts from servers
PPrisma
Created by Antonin on 8/9/2024 in #help-and-questions
Multiple Prisma
Hi, I'd like to know if I can define a schema.prisma file for a specific instance? I'd like to be able to manage a relational database and an sqlite database.
2 replies
PPrisma
Created by Antonin on 8/5/2024 in #help-and-questions
Error: PrismaClientUnknownRequestError:Invalid `prisma.user.groupBy()` invocation:
No description
7 replies
PPrisma
Created by Antonin on 7/1/2024 in #help-and-questions
cacheStrategy is never
error :
Type '{ ttl: number; swr: number; }' is not assignable to type 'never'.ts(2322)
(property) cacheStrategy: never
Type '{ ttl: number; swr: number; }' is not assignable to type 'never'.ts(2322)
(property) cacheStrategy: never
// prisma.ts
import { PrismaClient } from '@prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate';

export const prisma = new PrismaClient().$extends(withAccelerate());
// prisma.ts
import { PrismaClient } from '@prisma/client'
import { withAccelerate } from '@prisma/extension-accelerate';

export const prisma = new PrismaClient().$extends(withAccelerate());
7 replies