@wxn0brp/db
Version:
A modular, embedded database for developers who want control over their data storage.
13 lines (12 loc) • 448 B
JavaScript
import { ValtheraClass } from "@wxn0brp/db-core/db/valthera";
import { FileActions } from "@wxn0brp/db-storage-dir";
import { vFileCpu } from "@wxn0brp/db-storage-dir/file/index";
export class Valthera extends ValtheraClass {
constructor(folder, options = {}, fileCpu = vFileCpu) {
options.format ||= "json5:x";
super({
...options,
dbAction: new FileActions(folder, options, fileCpu)
});
}
}