Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/keywork/collections/KeyworkDatabase.ts>KeyworkDatabase

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
class KeyworkDatabase
import { KeyworkDatabase } from "https://deno.land/x/keywork@v6.2.1/collections/KeyworkDatabase.ts";

Creates a database instance backed by a Cloudflare KV namespace.

Constructors

new
KeyworkDatabase(kvNamespace: KVNamespace)

Methods

collection(collectionPath: string)

Gets a KeyworkCollection instance that refers to a collection of documents.

doc<ExpectedType extends DeserializationTypes | { } = never>(docPath: string)

Gets a KeyworkDocumentReference instance that refers to the document at the specified absolute path.