._perry_.
._perry_.
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Making a enum/union type like in prisma, but with drizzle
No problem!
9 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
i'm doing that
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
and the pg driver because it's what lucia-auth supports
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
i'm using neondb
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I'm so dumb
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I should male one cache function for each page
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
You're right
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
i'm using lucia-auth and i'm not sure relations are supported
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
Brb
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I'll try
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
But the problem is the select and where methods
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I can cover every single from manually
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
It would cover every single findFirst for the type
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
cache(prisma.user.findFirst)
cache(prisma.user.findFirst)
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
Not necessarily all
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
With prisma I could just do cache(prisma.type.thing)
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
Not just the user ID or something like that
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I mean select in general
46 replies
TTCTheo's Typesafe Cult
Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
I'm making a utility method
46 replies