Kenpaffu
Kenpaffu
Explore posts from servers
DTDrizzle Team
Created by Kenpaffu on 6/25/2024 in #help
insert multiple rows - onConflictDoUpdate
Hello, I am working on a project which is in prod now, I was originally looping through some data and inserting to my db in each iteration while having an onConflictDoUpdate for each one so that I can easily update data in said row. That has caused an issue with my db service which makes me think an insert multiple rows may be my best course of action. The only problem is that I don't know how to handle the onConflictDoUpdate because any of those rows can be conflicting and I'd like to update them if they are. Is there any way to do this? Thank you!
2 replies
DTDrizzle Team
Created by Kenpaffu on 6/16/2024 in #help
SQLITE error "Table already exists"
Hello, I've run drizzle-kit up and drizzle-kit generate, but when I run migrate I get an error saying that a table name already exists. (Error, below) My understanding is that this would just alter one of my tables based on my schemas, am I misunderstanding something? applying migrations...LibsqlError: SQLITE_ERROR: table table_name already exists
3 replies