incr: database demux base

- remove a few redundant files
This commit is contained in:
18alantom
2022-05-23 16:18:21 +05:30
parent 0efd2b4c33
commit a66e2bcc45
11 changed files with 69 additions and 1001 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import fs from 'fs/promises';
import { DatabaseMethod } from 'utils/db/types';
import { DatabaseDemuxBase, DatabaseMethod } from 'utils/db/types';
import { getSchemas } from '../../schemas';
import { databaseMethodSet } from '../helpers';
import patches from '../patches';
@@ -7,7 +7,7 @@ import DatabaseCore from './core';
import { runPatches } from './runPatch';
import { Patch } from './types';
export class DatabaseManager {
export class DatabaseManager extends DatabaseDemuxBase {
db?: DatabaseCore;
get #isInitialized(): boolean {