ragokan
ragokan
Explore posts from servers
DTDrizzle Team
Created by ragokan on 10/4/2024 in #help
How can I get warning when creating "Migration" with non nullable field
When I generate migration using the command drizzle-kit generate --config ./drizzle.config.ts I don't get any warnings for new fields that is non nullable. Shouldn't it warn me or ask for a default value? The generated SQL:
ALTER TABLE "profiles" ADD COLUMN "x" varchar NOT NULL;
ALTER TABLE "profiles" ADD COLUMN "x" varchar NOT NULL;
Config has these options
verbose: true,
strict: true,
schema: './packages/schema/**/*.ts',
dialect: 'postgresql',
dbCredentials: object
verbose: true,
strict: true,
schema: './packages/schema/**/*.ts',
dialect: 'postgresql',
dbCredentials: object
10 replies
PPrisma
Created by ragokan on 9/6/2024 in #help-and-questions
Start Prisma Studio Programatically
Is there any way to run Prisma Studio programatically? So that I can wrap it with Auth middleware and protect?
4 replies
TtRPC
Created by ragokan on 7/20/2023 in #❓-help
Dynamic return type
Is there any way to have dynamic return type with tRPC? Simple example: If I provide x: true on body, let me send number, otherwise string. But mainly, I want to use it for select fields on database
9 replies
TtRPC
Created by ragokan on 1/28/2023 in #❓-help
Use middleware to send response
Hello, how can I send a response from the middleware without executing the input, such as making a cache middleware?
2 replies