nickmazuk
Explore posts from serversAarktype
•Created by nickmazuk on 4/19/2025 in #questions
`.configure` not being applied
Hey all! I'm trying to use
.configure
to customize the error messages and it seems like it isn't being applied.
For instance if you put this in the playground, you'll see that the error message is "Password must contain at least one character that isn't a letter or number"
. My expectation is that it would either be 'override problem'
or 'override message'
because that's what I've configured.
Additionally, if I add console.log
statements to the problem
and message
functions it looks like those never run.
What am I doing wrong?
8 replies
DTDrizzle 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