DenoDDeno
Powered by
somethingelse~S
Denoβ€’3y agoβ€’
1 reply
somethingelse~

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.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno KV on deno deploy
MolanMMolan / help
11mo ago
Dates in Deno KV
vwkdVvwkd / help
7mo ago
Using Deno.KV twice
jsJjs / help
2y ago
Clear deno kv db
Online JesterOOnline Jester / help
3y ago