Skip to main content
Module

x/kvdex/mod.ts

Database wrapper for Deno KV
Go to Latest
import * as kvdex from "https://deno.land/x/kvdex@v0.10.1/mod.ts";

Classes

Builder object for creating and executing atomic operations in the KV store.

Represents a collection of documents stored in the KV store.

Represents a collection of object documents stored in the KV store.

Functions

Check for index collisions when inserting update data.

Delete document indices using an atomic operation.

Extend a kv key with key parts.

Flattens a document at the top level, placing the id and versionstamp together with the document data. Only applicable to documents of type Model.

Generate a random document id.

Get a document id from a document key.

Determine whether a kv value is an instance of KvObject.

Compare two kv keys for equality.

Create a new database instance.

Perform kv.getMany with sliced executions to allow for more keys than internal limit.

Set document indices using an atomic operation.

Use optimized atomic operations without hitting mutation limit.