UNPKG

@x5e/gink

Version:

an eventually consistent database

29 lines (28 loc) 1.13 kB
import { Database } from "./Database"; import { Container } from "./Container"; import { Muid, AsOf } from "./typedefs"; import { ContainerBuilder } from "./builders"; import { Bundler } from "./Bundler"; import { Edge } from "./Edge"; export declare class Vertex extends Container { constructor(database: Database, address: Muid, containerBuilder?: ContainerBuilder); /** * Returns a promise that resolves to true showing if this placeholder is/was visible at the * specified time (default now), or false if it was softly deleted. * @returns undefined, a basic value, or a container */ isAlive(asOf?: AsOf): Promise<boolean>; /** * Performs a soft delete of this graph node. */ remove(change?: Bundler | string): Promise<Muid>; revive(change?: Bundler | string): Promise<Muid>; reset(args?: { toTime?: AsOf; bundlerOrComment?: Bundler | string; skipProperties?: boolean; }): Promise<void>; getEdgesFrom(asOf?: AsOf): Promise<Edge[]>; getEdgesTo(asOf?: AsOf): Promise<Edge[]>; getEdges(source: boolean, asOf?: AsOf): Promise<Edge[]>; }