sqlite vs postgesql vs mysql which one is faster
Option to have relations returned from findFirst/findMany be marked as optional
Delete limit and offset?
Relational delete with returning
TIMESTAMPTZ is returned as string instead of Date object
pg-types
handling of dates. Usually pg-types
and thus node-postgres
converts TIMESTAMP
, TIMESTAMPTZ
and other related data base types automatically to a JS date object.
I tried Drizzle with the node-postgres driver and it didn't seem to work, dates were simply strings. I figured that Drizzle resets the default type convertes upon initialization (see picture).
I was wondering why that is. And is that simply a me problem or did anyone also find TIMESTAMP
being returned as string
when using node-postgres
?...
Trying to get relations from one table to another, as one-to-many but get only one value
strange libsql error when doing push:sqlite
Relations include query
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