15 lines
265 B
TypeScript
Raw Normal View History

2020-04-18 20:43:02 +02:00
import { Table } from './Table';
export class Database {
public tables: Array<Table> = [];
2020-04-19 18:49:07 +02:00
public get_table (name: string): Table|null {
for (const table of this.tables) {
if (table.name === name)
return table;
}
return null;
}
2020-04-18 20:43:02 +02:00
}