Jack
Explore posts from serversDTDrizzle Team
•Created by Jack on 2/8/2025 in #help
Complex seeding tasks
I have the utilities to generate as many weeks, I guess all I need is a way to say "this array of weeks is ISO 8601, so the foreign key relates to the ISO 8601 row. And this array of weeks is US Sunday, so these relate to the US Sunday row"
3 replies
DTDrizzle Team
•Created by ls on 11/28/2024 in #help
How to use drizzle-seed to seed data?
I have tried node-postgres and postgres drivers and it still gives the same error 😬
Tested with drizzle-orm 0.36.4
4 replies
DTDrizzle Team
•Created by ls on 11/28/2024 in #help
How to use drizzle-seed to seed data?
I also get this length error too. I will see if I can find anything else and update here
4 replies
DTDrizzle Team
•Created by michaelp7725 on 11/27/2024 in #help
question/problem about new drizzle-seed
I think as well it expects fully lowercase table names too which tripped me up otherwise it gives me this error:
@scope/package: PostgresError: relation "public.tablename" does not exist
To be honest though I should have probably used table_name
instead of tableName
3 replies
DTDrizzle Team
•Created by Jack on 6/1/2024 in #help
db.insert(Table).values() gives TypeScript error "Object literal may only specify known properties"
I fixed it... One second after asking.
I accidentally had
fileId
in the insert, which trips it up. The error says authorId
in addition to some other fields which confused me!2 replies