Skip to content

LocalDataStoreCloseReason

Why a LocalDataStore connection stopped accepting operations.

Import:

import type { LocalDataStoreCloseReason } from '@mnaoumov/obsidian-lib/data-stores/local-data-store';

Signature:

export enum LocalDataStoreCloseReason

Members:

Member Value Description
ClosedByBrowser 'closedByBrowser' The browser closed the connection on its own, for example because the database was deleted or the storage was cleared.
ClosedByOwner 'closedByOwner' The owner called LocalDataStore.close, usually because it unloaded.
VersionChange 'versionChange' Another connection asked for a newer schema version, so this one closed to let it upgrade.