UNPKG

@zoranwong/acc-engine.js

Version:

A javascript framework to accelerate your applicatin developement

25 lines (22 loc) 481 B
import Application from "../foundation/Application"; export default class Database { /**@property {FunctionConstructor} #driver*/ #driver ; #app = null; /** * @param {Application} app * */ constructor(app) { this.#app = app; this.#driver = app.getDBDriver(app); } get store() { return new this.driver(); } /** * @return {FunctionConstructor} * */ get driver() { return this.#driver; } }