Skip to main content
Deno.Kv.prototype.atomic - Deno documentation
method Deno.Kv.prototype.atomic
Kv.prototype.atomic(): AtomicOperation
Create a new [`Deno.AtomicOperation`](../././~/Deno.AtomicOperation) object which can be used to perform an atomic transaction on the database. This does not perform any operations on the database - the atomic transaction must be committed explicitly using the `Deno.AtomicOperation.commit` method once all checks and mutations have been added to the operation.

Return Type