(tables schema.Tables)
| 56 | } |
| 57 | |
| 58 | func (c *Client) normalizeTables(tables schema.Tables) schema.Tables { |
| 59 | flattened := tables.FlattenTables() |
| 60 | normalized := make(schema.Tables, len(flattened)) |
| 61 | for i, table := range flattened { |
| 62 | normalized[i] = c.normalizeTable(table) |
| 63 | } |
| 64 | return normalized |
| 65 | } |
| 66 | |
| 67 | func (c *Client) normalizeTable(table *schema.Table) *schema.Table { |
| 68 | columns := make([]schema.Column, len(table.Columns)) |
no test coverage detected