UNPKG

@iobroker/db-states-jsonl

Version:

The Library contains the JSONL Database classes for File based states database client and server.

20 lines 816 B
/** * This class inherits InMemoryFileDB class and adds all relevant logic for states * including the available methods for use by js-controller directly */ export class StatesInMemoryJsonlDB extends StatesInMemoryFileDB { constructor(settings: any); _db: JsonlDB<unknown>; _backupInterval: NodeJS.Timeout | undefined; /** * Checks if an existing file DB should be migrated to JSONL * * @returns true if the file DB was migrated. false if not. * If this returns true, the jsonl DB was opened and doesn't need to be opened again. */ _maybeMigrateFileDB(): Promise<boolean>; saveBackup(): Promise<void>; } import { StatesInMemoryFileDB } from '@iobroker/db-states-file'; import { JsonlDB } from '@alcalzone/jsonl-db'; //# sourceMappingURL=statesInMemJsonlDB.d.ts.map