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) • 774 B
TypeScript
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 newer_update
*/
export declare function rebuildUpdateBefore(update: any, newer_update: any, full_update?: 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 current_entry
* @param timestamp
* @param store
* @returns
*/
export declare function getRecordAtTime(current_entry: any, timestamp: any, store: any): any;