"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseDB = void 0;
/**
 * 数据库基类，包含基础的增删查改接口
 */
class BaseDB {
    constructor(key) {
        this.key = key;
    }
    async find(field, value) {
        const all = await this.getAll();
        return all.filter((item) => item[field] === value);
    }
}
exports.BaseDB = BaseDB;
