MCPcopy
hub / github.com/jvilk/BrowserFS / AsyncKeyValueROTransaction

Interface AsyncKeyValueROTransaction

src/generic/key_value_filesystem.ts:653–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651 * Represents an asynchronous read-only transaction.
652 */
653export interface AsyncKeyValueROTransaction {
654 /**
655 * Retrieves the data at the given key.
656 * @param key The key to look under for data.
657 */
658 get(key: string, cb: BFSCallback<Buffer>): void;
659}
660
661/**
662 * Represents an asynchronous read-write transaction.

Callers

nothing calls this directly

Implementers 5

IndexedDBROTransactionsrc/backend/IndexedDB.ts
IndexedDBRWTransactionsrc/backend/IndexedDB.ts
LocalStorageStoresrc/backend/LocalStorage.ts
InMemoryStoresrc/backend/InMemory.ts
SimpleSyncRWTransactionsrc/generic/key_value_filesystem.ts

Calls

no outgoing calls

Tested by

no test coverage detected