Skip to main content
Module

x/hex/mod.ts>data.Repository

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface data.Repository
Re-export
import { type data } from "https://deno.land/x/hex@0.5.15/mod.ts";
const { Repository } = data;

Type Parameters

optional
T = unknown

Methods

get(id: string): Promise<T | undefined>
getAll(): Promise<T[]>
add<R = T>(data: R): Promise<string>
update<R = T>(id: string, data: R): Promise<void>
replace<R = T>(id: string, data: R): Promise<void>
remove(id: string): Promise<void>