Implement the deleteTable method on the MemoryDatabase
This commit is contained in:
parent
de35935a2d
commit
b4b3becec0
1 changed files with 4 additions and 0 deletions
|
|
@ -117,6 +117,10 @@ export class MemoryDatabase extends Database {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static async deleteTable(tableID) {
|
||||||
|
return delete this.#tables[tableID];
|
||||||
|
};
|
||||||
|
|
||||||
static async createRow(table, userID, row, { rerender = true } = {}) {
|
static async createRow(table, userID, row, { rerender = true } = {}) {
|
||||||
if (!this.#tables[table]) { return };
|
if (!this.#tables[table]) { return };
|
||||||
this.#rows[userID] ??= {};
|
this.#rows[userID] ??= {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue