15 lines
265 B
TypeScript
15 lines
265 B
TypeScript
import { Table } from './Table';
|
|
|
|
export class Database {
|
|
public tables: Array<Table> = [];
|
|
|
|
public get_table (name: string): Table|null {
|
|
for (const table of this.tables) {
|
|
if (table.name === name)
|
|
return table;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|