MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / normalizeTables

Method normalizeTables

plugins/destination/sqlite/client/migrate.go:58–65  ·  view source on GitHub ↗
(tables schema.Tables)

Source from the content-addressed store, hash-verified

56}
57
58func (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
67func (c *Client) normalizeTable(table *schema.Table) *schema.Table {
68 columns := make([]schema.Column, len(table.Columns))

Callers 1

MigrateTablesMethod · 0.95

Calls 1

normalizeTableMethod · 0.95

Tested by

no test coverage detected