void addTable(SchemaTable table)

Adds a table to this instance.

Sets table's SchemaTable.schema to this instance.

Source

void addTable(SchemaTable table) {
  if (this[table.name] != null) {
    throw new SchemaException("Table ${table.name} already exists.");
  }

  _tableStorage.add(table);
  table.schema = this;
}