Deno.KvListSelector

UNSTABLE: New API, yet to be vetted.

A selector that selects the range of data returned by a list operation on a Deno.Kv.

The selector can either be a prefix selector or a range selector. A prefix selector selects all keys that start with the given prefix (optionally starting at a given key). A range selector selects all keys that are lexicographically between the given start and end keys.

type KvListSelector =
| {
prefix: KvKey;
}
| {
prefix: KvKey;
start: KvKey;
}
| {
prefix: KvKey;
end: KvKey;
}
| {
start: KvKey;
end: KvKey;
}
;

§Type

§
{
prefix: KvKey;
}
| {
prefix: KvKey;
start: KvKey;
}
| {
prefix: KvKey;
end: KvKey;
}
| {
start: KvKey;
end: KvKey;
}
[src]