somethingelse~
somethingelse~
DDeno
Created by somethingelse~ on 11/19/2023 in #help
Deno KV equivalent of 'returning'
hello, in sqlite there is a way to get the new value set on an upsert like so insert into counters (name, counter) values (?, 0) on conflict (name) do update set counter = counter + 1 returning counter; is there a way an equivalent on KV? At the moment what I'm looking at is looping with a get and then try set or retry.
2 replies