import { KwikTable } from "https://deno.land/x/kwik@v1.3.1/mod.ts";
Constructors
new
KwikTable(kwik: Kwik, tableName: string)Properties
private
kwik: KwikMethods
delete(id: string): Promise<boolean>
Deletes a document from the table.
deleteMany(filter: Partial<T> | ((value: T) => boolean))
Deletes all documents in a table that match a filter
Deletes one document in a table that match a filter
findMany(filter: Record<string, unknown> | ((value: T) => boolean), returnArray?: false): Promise<Map<string, T>>
Get all documents from a table that match a filter
Gets the first document from a table that match a filter
has(id: string): Promise<boolean>
Check if a document exists
Updates a documents' data. If this document does not exist, it will create the document.