import { KvDex } from "https://deno.land/x/kvdex@v0.29.0/mod.ts";
Constructors
Type Parameters
Properties
Methods
Initializes an atomic operation.
Takes a selector function as argument which is used to select an initial collection context.
Count all document entries in the KV store.
Does not count index entries or segmented entries as additional documents.
Does not count undelivered queue messages.
Add data to the database queue to be delivered to the queue listener
via db.listenQueue()
. The data will only be received by queue
listeners on the database queue and specified topic. The method takes an optional options
argument that can be used to set a delivery delay and topic.
Find an undelivered document entry by id from the database queue.
Listen for data from the database queue that was enqueued with db.enqueue()
. Will only receive data that was enqueued to the database queue. Takes a handler function as argument.
Create a sequential loop built on queues.
Will repeat indefinitely if no exit condition is set.
There is an enforced minimum start delay of 1 second to ensure the queue listener is registered before the first delivery.
Create an interval for a callback function to be invoked, built on queues.
Interval defaults to 1 hour if not set.
Will repeat indefinitely if no exit condition is set.
There is an enforced minimum start delay of 1 second to ensure the queue listener is registered before the first delivery.
Wipe all kvdex entries, including undelivered and history entries.