@wxn0brp/db
Version:
A lightweight file-based database management system that supports CRUD operations, custom queries and relations.
15 lines (14 loc) • 584 B
JavaScript
import ValtheraClass from "@wxn0brp/db-core/db/valthera";
import executorC from "@wxn0brp/db-core/helpers/executor";
import dbActionC from "@wxn0brp/db-storage-dir/action";
import vFileCpu from "@wxn0brp/db-storage-dir/file/index";
export class Valthera extends ValtheraClass {
constructor(folder, options = {}, fileCpu) {
super(options);
if (!fileCpu)
fileCpu = vFileCpu;
this.dbAction = options.dbAction || new dbActionC(folder, options, fileCpu);
this.executor = options.executor || new executorC();
}
}
export default Valthera;