keii
Explore posts from serversTTCTheo's Typesafe Cult
•Created by keii on 6/21/2024 in #questions
Recommended way to prettyprint tRPC errors
Do you all have any preffered way/function to pretty print tRPC errors like zod?
4 replies
PPrisma
•Created by keii on 5/1/2024 in #help-and-questions
Reason why relation is giving an error when id is provided
Hello im trying to create a new row but even when the id is provided it gives an error
schema:
4 replies
PPrisma
•Created by keii on 4/8/2024 in #help-and-questions
Wierd type error with prisma codegen
4 replies
PPrisma
•Created by keii on 4/6/2024 in #help-and-questions
Turbo setup with prisma and pnpm
I have a setup using turborepo and running a few apps and some shared packages together and it works well in dev but i can't figure out how to setup docker, pnpm and prisma together. I've written my dockerfile below and my tree structure is
Prisma;
/apps/qrtag/prisma/prisma.schema
/apps/qrtag/(nextjs app)
/apps/qrtag/Dockerfile
/docker-compose.yml
Dockkerfile
docker-compose.yml
.dockerignore
2 replies
PPrisma
•Created by keii on 3/30/2024 in #help-and-questions
Cannot select both '$scalars: true' and a specific scalar field 'tags'.
This is my relevant schema
and this is my query
how would i fix this error?
I've checked relevant github issues and seems like this error is common and vague
4 replies
DTDrizzle Team
•Created by keii on 3/25/2024 in #help
Add function to table in schema.ts
I come from a background using the Eloquent ORM in Laravel where you can add methods to the models so you can do something like
user.isAdmin()
(example with js syntax). Is it possible in Drizzle to add a function to the table so after I've queried a row I can do something similar like
or would i have to define helpers like
worth to note that in this example I would have a user_admins
table with a one-to-one reference to a User
not a is_admin
column on the users
table1 replies
VVALORANT
•Created by keii on 2/17/2024 in #community-help
Can't go into account settings on playvalorant.com
48 replies
Do static classes leak memory?
I have made a simple 2d game engine currently built on SDL2 to work on the api and such. What i've noticed is that the game engine is leaking loads of memory (around 2 mb a second) and i'm trying to figure out why. Now the entire game engine is composed of static classes so that you can do calls like
Draw.Rectangle(x, y, w, h)
and likewise to ease the learning curve and Draw.Rectangle adds a class to a list which is drawn and cleared every frame. Do static classes not clear memory or something similar or do i have another problem? I have checked the rider memory debugger and it says that the Rectangle class takes up around 255 kb which should not be happening.28 replies