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;
|
||||
};
|
||||
|
||||
static async deleteTable(tableID) {
|
||||
return delete this.#tables[tableID];
|
||||
};
|
||||
|
||||
static async createRow(table, userID, row, { rerender = true } = {}) {
|
||||
if (!this.#tables[table]) { return };
|
||||
this.#rows[userID] ??= {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue