Implement the deleteTable method on the MemoryDatabase

This commit is contained in:
Oliver-Akins 2025-05-30 23:24:51 -06:00
parent de35935a2d
commit b4b3becec0

View file

@ -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] ??= {};