MUG Knight
DTDrizzle Team
•Created by MUG Knight on 11/26/2024 in #help
Unable to create a check constraint for NaN values
I stand corrected. The query I wrote to get the indexes/constraints was incorrect. They are there now.
5 replies
DTDrizzle Team
•Created by MUG Knight on 11/26/2024 in #help
Unable to create a check constraint for NaN values
I am able to NOT get an error when running with a check constraint that looks like this: sql
nullif(${table.amount}, 'NaN') is not null
But... When I query the DB to see what contraints/indexes exist on my table with this defined in the drizzle schema, there is no check onstraint...5 replies
DTDrizzle Team
•Created by MUG Knight on 10/7/2024 in #help
Adding record in Drizzle Studio with .generatedAlwaysAsIdentity error.
🦗
2 replies
TTCTheo's Typesafe Cult
•Created by Xteripus on 8/27/2024 in #questions
"Expected an error object to be thrown." At From 0 to Production - The Modern React Tutorial
The "simple" solution is to just throw a regular Error object.
5 replies
TTCTheo's Typesafe Cult
•Created by Xteripus on 8/27/2024 in #questions
"Expected an error object to be thrown." At From 0 to Production - The Modern React Tutorial
Same issue. I assumed UploadThingError extends an Error object, but that appears to be inocrrect.
5 replies