ConstOptionalbaseDir: stringComputed directory path for entity storage
Computes file path for entity ID.
Entity identifier
Full file path to entity JSON file
Async iterator implementation. Delegates to values() generator.
AsyncIterableIterator yielding entities
ReadonlybaseDir: stringReadonlyentityName: EntityNameReturns count of persisted entities.
Promise resolving to number of .json files in directory
Async generator yielding all entity IDs. Sorted alphanumerically.
AsyncGenerator yielding entity IDs
Removes entity from storage.
Entity identifier to remove
Promise that resolves when entity is deleted
Async generator yielding all entity values. Sorted alphanumerically by entity ID.
AsyncGenerator yielding entities
Base class for file-based persistence with atomic writes.
Features: