MCPcopy Create free account
hub / github.com/apache/maka / readBoundMemoryBundle

Function readBoundMemoryBundle

packages/storage/src/memory-bundle-io.ts:89–94  ·  view source on GitHub ↗
(directory: DirectoryBinding)

Source from the content-addressed store, hash-verified

87}
88
89async function readBoundMemoryBundle(directory: DirectoryBinding): Promise<MemoryBundleSnapshot> {
90 const memory = await readDocument(directory, 'memory');
91 const pending = await readDocument(directory, 'pending');
92 await assertDirectoryBinding(directory);
93 return bundleSnapshot(memory, pending);
94}
95
96export async function readMemoryBackups(root: string): Promise<readonly MemoryBackupSnapshot[]> {
97 const directory = await bindMemoryDirectory(root);

Callers 3

readMemoryBundleFunction · 0.85
publishTransactionFunction · 0.85

Calls 3

assertDirectoryBindingFunction · 0.85
bundleSnapshotFunction · 0.85
readDocumentFunction · 0.70

Tested by

no test coverage detected