Hard-override any configured database handler that is erroneous and freeze the config after ready.
This commit is contained in:
parent
a354629839
commit
47deb24d67
2 changed files with 46 additions and 1 deletions
34
module/utils/databases/NilDatabase.mjs
Normal file
34
module/utils/databases/NilDatabase.mjs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { Database } from "./Database.mjs";
|
||||
|
||||
/**
|
||||
* This database implemention is not recommended for any actual usage,
|
||||
* it is intended for overriding the current database implementation
|
||||
* when a non-conforming Database is provided as the CONFIG.stats.db
|
||||
* value in order to maintain the API interface for dependant modules
|
||||
* and systems.
|
||||
*/
|
||||
export class NilDatabase extends Database {
|
||||
// MARK: Table Ops
|
||||
static async createTable() {};
|
||||
static async getTables() {};
|
||||
static async getTable() {};
|
||||
static async updateTable() {};
|
||||
static async deleteTable() {};
|
||||
|
||||
// MARK: Row Ops
|
||||
static async createRow() {};
|
||||
static async createRows() {};
|
||||
static async getRows() {};
|
||||
static async updateRow() {};
|
||||
static async deleteRow() {};
|
||||
|
||||
// MARK: Applications
|
||||
static addApp() {};
|
||||
static removeApp() {};
|
||||
static async render() {};
|
||||
|
||||
// MARK: Listeners
|
||||
static async registerListeners() {};
|
||||
static async triggerListeners() {};
|
||||
static async unregisterListeners() {};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue