nickmazuk
Explore posts from serversDTDrizzle Team
•Created by nickmazuk on 8/19/2023 in #help
Not equal with relational queries
Has anyone used
ne
with relational queries?
When I use the callback syntax, I get the following type error:
4 replies
DTDrizzle Team
•Created by nickmazuk on 8/13/2023 in #help
Invalid serialization of JSON blobs
Has anyone gotten default values of JSON blobs to work with SQLite?
When I try using an empty array, the SQL migration does not have a default value (despite having the
DEFAULT
keyword).
If I use an object, the default value is the toString
serialization: [object Object]
, not the JSON.stringify
serialization.
I also posted an issue on GitHub since this seems like a bug, but asking here in case any of you have found a workaround.
https://github.com/drizzle-team/drizzle-orm/issues/10361 replies
DTDrizzle Team
•Created by nickmazuk on 8/12/2023 in #help
SQLite: timestamp vs timestamp_ms modes
The SQLite column types docs mention there's multiple modes for integers.
What's the difference between timestamp_ms and timestamp modes?
My assumption is the following:
-
timestamp_ms
: Stores the timestamp including the milliseconds. Same precision as Date.now(). Equivalent to TIMESTAMP in MySQL.
- timestamp
: Stores the date only. Same precision as 2023-08-09. Equivalent to DATE in MySQL.
https://github.com/drizzle-team/drizzle-orm/discussions/10077 replies