Skip to content

MemoryPersistenceAdapter@sheetwrite/core

On this page

Executable database-neutral reference adapter for tests, demos, and local workflows.

Members 4

constructor
constructor(...snapshots: readonly WorkbookSnapshot[]);
commit
commit: (request: PersistenceCommitRequest) => Promise<PersistenceCommitResponse>;
commitBatch Validate every member version against the default sync limits, apply the members in order to one scratch store, and publish all of them only when every member applied.
commitBatch: (request: PersistenceBatchCommitRequest) => Promise<PersistenceCommitResponse>;
load
load: (documentId: string, signal?: AbortSignal) => Promise<WorkbookSnapshot>

Declaration

View full TypeScript declaration
class MemoryPersistenceAdapter implements PersistenceAdapter {
constructor(...snapshots: readonly WorkbookSnapshot[]);
commit: (
commitBatch: (
load: (
documentId: string,
signal?: AbortSignal,
) => Promise<WorkbookSnapshot>;
}

Referenced by

Workspace packages depending on @sheetwrite/core

  • @sheetwrite/benchdependency
  • @sheetwrite/docs-startdependency
  • @sheetwrite/reactdependency
  • @sheetwrite/sveltedependency
  • @sheetwrite/vuedependency
  • @sheetwrite/xlsxdependency

Public exports naming MemoryPersistenceAdapter

  • None.
Documentation