Jack
Explore posts from serversDTDrizzle 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