Does anyone know when a new exposed version will b...
# exposed
c
Does anyone know when a new exposed version will be released? I'm looking forward to using the new upsert functionality 🤔
K 3
e
Hey @Chris Werner Rau, thanks for the question. We're trying to make a release this week!
🎉 5
❤️ 2
b
What's the difference to the existing
.replace
?
c
This is overdue, but for anyone reading this thread: The original
replace()
was misleading and inconsistent, depending on which database was being used. It was actually implementing an upsert operation (insert or update) for PostgreSQL, but then it was performing a replace operation (insert or delete then insert) for other databases. So
replace()
is no longer available with databases that do not actually support REPLACE and the 'insert or update' operation has its own function
upsert()
. For more details, here are the Wiki links for upsert and replace.
👍 1