import { Tkv } from "https://deno.land/x/tkv@v0.1.0/mod.ts";
Typed wrapper for Deno.Kv.
Constructors
new
Tkv(db: Deno.Kv)Type Parameters
K extends Deno.KvKey
Key type. For example: ["usersByEmail", email: string]
.
Methods
atomicDelete(key: readonly [...K], versionstamp: Deno.AtomicCheck["versionstamp"]): ReturnType<Deno.AtomicOperation["commit"]>
Shorthand for Deno.AtomicOperation.check and Deno.AtomicOperation.delete.
atomicSet(): ReturnType<Deno.AtomicOperation["commit"]>
key: readonly [...K],
versionstamp: Deno.AtomicCheck["versionstamp"],
value: T,
options?: Parameters<Deno.AtomicOperation["set"]>[2],
Shorthand for Deno.AtomicOperation.check and Deno.AtomicOperation.set.
Typed wrapper for Deno.Kv.get.
list(selector: TkvListSelector<K>, options?: Parameters<Deno.Kv["list"]>[1]): TkvListIterator<K, T>
Typed wrapper for Deno.Kv.list.