How to delete and insert in one query
Hey! I wonder how with kysely make for example delete and insert in one query to reduce db roundtrips.
I believe Using WITH Clause (Common Table Expressions - CTEs) might help, but how kysely syntax would looks like?
Should I simply use raw sql here?
3 Replies
Solution
as always thank you very much