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

Interface SyncKeyValueStore

src/generic/key_value_filesystem.ts:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 * Represents a *synchronous* key-value store.
72 */
73export interface SyncKeyValueStore {
74 /**
75 * The name of the key-value store.
76 */
77 name(): string;
78 /**
79 * Empties the key-value store completely.
80 */
81 clear(): void;
82 /**
83 * Begins a new read-only transaction.
84 */
85 beginTransaction(type: "readonly"): SyncKeyValueROTransaction;
86 /**
87 * Begins a new read-write transaction.
88 */
89 beginTransaction(type: "readwrite"): SyncKeyValueRWTransaction;
90 beginTransaction(type: string): SyncKeyValueROTransaction;
91}
92
93/**
94 * A read-only transaction for a synchronous key value store.

Callers 16

_rockRidgeFilenameFunction · 0.65
getNameMethod · 0.65
getNameMethod · 0.65
getNameMethod · 0.65
clearMethod · 0.65
clearMethod · 0.65
emptyMethod · 0.65
emptyMethod · 0.65
renameSyncMethod · 0.65
statSyncMethod · 0.65
createFileSyncMethod · 0.65
openFileSyncMethod · 0.65

Implementers 3

LocalStorageStoresrc/backend/LocalStorage.ts
InMemoryStoresrc/backend/InMemory.ts
IndexedDBStoresrc/backend/IndexedDB.ts

Calls

no outgoing calls

Tested by

no test coverage detected