UNPKG

moonlifedb

Version:

A JSON database with a bunch of tools and typescript support.

27 lines (26 loc) 776 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.BackupManager = void 0; const CoreCheck_1 = require("./CoreCheck"); const lib = new CoreCheck_1.Memory(); class BackupManager { adapter; backupAdapter; tablePath; backupPath; /** * NOT SUPPORTED YET * * The class to work with tables * @example const creator = new TableCreator(adapter); * @param adapter */ constructor(adapter, backupAdapter) { this.adapter = adapter; this.backupAdapter = backupAdapter; this.tablePath = this.adapter.tablePath; this.backupPath = this.backupAdapter.tablePath; lib.checkDir(this.tablePath); } } exports.BackupManager = BackupManager;