Get most of the prompt to create new tables working, and keeping the Dice namespace restricted to a certain bucket type
This commit is contained in:
parent
8c9fd1930a
commit
dfc75fceaf
8 changed files with 73 additions and 19 deletions
|
|
@ -74,6 +74,10 @@ export class MemoryDatabase extends Database {
|
|||
|
||||
static #rows = {};
|
||||
|
||||
static createTable(tableConfig) {
|
||||
this.#tables[tableConfig.name] = tableConfig;
|
||||
};
|
||||
|
||||
/** @returns {Array<Table>} */
|
||||
static getTables() {
|
||||
return Object.values(this.#tables);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue