Nicolas
Explore posts from serversDTDrizzle Team
•Created by Nicolas on 8/11/2024 in #help
SQL string could not be parsed: non-terminated block comment at ...
The error was I had another migration file that was pulled from the introspection and it was commented out... by having it commented out I thought it woudln't inter unless uncommented but it did...
6 replies
DTDrizzle Team
•Created by Nicolas on 8/11/2024 in #help
SQL string could not be parsed: non-terminated block comment at ...
Hi Mario, I tried that but still received the same error, thanks for the suggestion.
6 replies
DTDrizzle Team
•Created by Nicolas on 8/11/2024 in #help
SQL string could not be parsed: non-terminated block comment at ...
Using the following packages/version:
6 replies
DTDrizzle Team
•Created by Nicolas on 2/14/2024 in #help
Getting error NeonDbError when pushing migration file
Hi Solo, i seem have had a unique() on another json property that was causing this error, I got it working without including the unique(), it seems for that you need jsonb
4 replies
DTDrizzle Team
•Created by Nicolas on 10/11/2023 in #help
Infer Types from Partial Select Prepared Statement
Thanks guys, didnt know that was a thing lol
5 replies
DTDrizzle Team
•Created by AlphaOmegaBetaSin on 9/29/2023 in #help
A very weird problem with Drizzle I'm having.
do you have a repo for this?
3 replies
DTDrizzle Team
•Created by Nicolas on 9/30/2023 in #help
notNull() is still letting field be optional
Well this only solves the
NewProduct
but doesn't fix the insertProductSchema
since that uses zod8 replies
DTDrizzle Team
•Created by Nicolas on 9/30/2023 in #help
notNull() is still letting field be optional
To fix this, I have to do
export type NewProduct = Omit<typeof products.$inferInsert, "id"> & { id: number };
But there should be a way to avoid this, no?8 replies
DTDrizzle Team
•Created by Nicolas on 9/30/2023 in #help
notNull() is still letting field be optional
8 replies
DTDrizzle Team
•Created by Nicolas on 9/30/2023 in #help
notNull() is still letting field be optional
The problem seems to be that
hasDefault
is set to true
; how can I force this to be false
?8 replies
DTDrizzle Team
•Created by Nicolas on 9/29/2023 in #help
Issue Pushing Schema to Turso
I fixed it by installing
better-sqlite3
, but not sure if this is something that the user should have to do? As that should be a dependency by drizzle and could cause conflicts possibly?3 replies
DTDrizzle Team
•Created by Nicolas on 9/27/2023 in #help
How to make sql.placeholder() type safe
Looks like this is the issue for this? https://github.com/drizzle-team/drizzle-orm/issues/519
4 replies
DTDrizzle Team
•Created by Nicolas on 9/23/2023 in #help
Neon and Drizzle ORM: Can my schema.ts create my tables in Neon?
oh that's cool, so that will take my Neon DB and create a schema from it looks like, that will work
7 replies