UNPKG

harperdb

Version:

HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.

48 lines (47 loc) 1.4 kB
export declare function getHDBNodeTable(): any; export declare function getReplicationSharedStatus(auditStore: any, databaseName: string, node_name: string, callback?: () => void): Float64Array<any>; export declare function subscribeToNodeUpdates(listener: (node: any, id: string) => void): void; export declare function shouldReplicateToNode(node: Node, databaseName: string): any; /** Ensure that the shared user buffers are instantiated so we can communicate through them */ type AwaitingReplication = { txnTime: number; onConfirm: () => void; }; export declare let commitsAwaitingReplication: Map<string, AwaitingReplication[]>; export type Route = { url?: string; subscriptions?: { database: string; schema: string; subscribe: boolean; }[]; hostname?: string; host?: string; port?: any; routes?: any[]; }; export type Node = { name: string; subscriptions: { database: string; schema: string; subscribe: boolean; }[]; replicates: boolean; url: string; startTime?: number; revoked_certificates?: string[]; shard?: number; }; export declare function iterateRoutes(options: { routes: (Route | any)[]; }): Generator<{ replicates: any; url: any; subscription: any; routes: any; startTime: any; revoked_certificates: any; }, void, unknown>; export {};