UNPKG

harperdb

Version:

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

20 lines (19 loc) 769 B
export declare function add(record: any, property: any, action: any): void; export declare namespace add { var reverse: (record: any, property: any, action: any) => void; } /** * Rebuild a record update that has a timestamp before the provided newer update * @param update * @param newerUpdate */ export declare function rebuildUpdateBefore(update: any, newerUpdate: any, fullUpdate?: boolean): any; export declare function applyReverse(record: any, update: any): void; /** * Reconstruct the record state at a given timestamp by going back through the audit history and reversing any changes * @param currentEntry * @param timestamp * @param store * @returns */ export declare function getRecordAtTime(currentEntry: any, timestamp: any, store: any): any;