Skip to content
Sheetwrite

@sheetwrite/core/history

AtomicHistoryStorageclass

Report a problem

On this page

Publication, reader leases and reference-counted retention, shared by the supplied adapters. Every method runs in one transact call, so a failure leaves the stored archive unchanged.

Members

Properties

Methods

Declaration

View full TypeScript declaration
class AtomicHistoryStorage implements HistoryStorageAdapter {
get: (
list: (request: HistoryListRequest) => Promise<HistoryListPage>;
prune: (request: HistoryPruneRequest) => Promise<HistoryManifest>;
put: (input: HistoryPutRequest) => Promise<HistoryManifest>;
transact: <T>(
action: (transaction: HistoryStorageTransaction) => Promise<T>,
) => Promise<T>;
}

Referenced by

Public exports naming AtomicHistoryStorage