import { KeyworkDatabase } from "https://deno.land/x/keywork@v6.0.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.