@iobroker/db-objects-jsonl
Version:
The Library contains the JSONL Database classes for File based objects database client and server.
20 lines • 822 B
TypeScript
/**
* This class inherits InMemoryFileDB class and adds all relevant logic for objects
* including the available methods for use by js-controller directly
*/
export class ObjectsInMemoryJsonlDB extends ObjectsInMemoryFileDB {
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 { ObjectsInMemoryFileDB } from '@iobroker/db-objects-file';
import { JsonlDB } from '@alcalzone/jsonl-db';
//# sourceMappingURL=objectsInMemJsonlDB.d.ts.map