Переход на JembaDb

This commit is contained in:
Book Pauk
2021-12-02 18:36:49 +07:00
parent 14ca2daa39
commit 0beaa611f6
8 changed files with 145 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ class JembaConnManager {
this.config = config;
this._db = {};
for (const dbConfig of this.config.db) {
for (const dbConfig of this.config.jembaDb) {
const dbPath = `${this.config.dataDir}/db/${dbConfig.dbName}`;
//бэкап
@@ -90,7 +90,7 @@ class JembaConnManager {
if (!this.inited)
return;
for (const dbConfig of this.config.db) {
for (const dbConfig of this.config.jembaDb) {
await this._db[dbConfig.dbName].closeDb();
}

View File

@@ -2,8 +2,7 @@ module.exports = {
up: [
//CREATE TABLE storage (id TEXT PRIMARY KEY, rev INTEGER, time INTEGER, data TEXT);
['create', {
table: 'storage',
hash: {field: 'id', type: 'string', depth: 100}
table: 'storage'
}],
],
down: [