Issue with Drizzle-Zod: Due to a type mismatch between the ZodObject and ZodType types.
Possible to reuse columns while selecting?
Manually create migration file
How do you infer the type of a relations query?
ForeignKey Too Long
Drizzle workflow on schema modification
Possible to have type from enum value?
Creating join table that is simultaneously many-to-many and one-to-many
Any way to replace null by undefined?
transform
option of postgres.js
in order to transform undefined
to null
. That way, any inserted undefined
would be inserted as null
in the database, and any null
value in the database would be an undefined
in JS.
I'm looking for a way to do this with Drizzle. AFAIU as I'm still using the postgres.js
connector, I can continue with these options, so the issue is to use undefined
instead of null
in the types. Similarly to changing a column type with .$type<T>()
.
Thanks!...Drizzle pagination with count
TRIGGERS in Drizzle
Migrating from Prisma Schema
[HELP]: I'm trying to re-create a CTE-insert in drizzle, having some difficulties
Add drizzle-kit check as a pre-commit hook
Planetscale swapped the order of Primary Key Relation
userId
, serverId
),
+ PRIMARY KEY (serverId
, userId
),...Postgres functions in the ORM?
InferModelFromColumns with columns defined with sql``
Issue with drizzle-zod?
Optional One-to-One Relation