(table string, defaultSchema string)
| 1119 | } |
| 1120 | |
| 1121 | func splitTableName(table string, defaultSchema string) (string, string) { |
| 1122 | schema := defaultSchema |
| 1123 | schemaTable := strings.SplitN(table, ".", 2) |
| 1124 | if len(schemaTable) == 2 { |
| 1125 | schema = schemaTable[0] |
| 1126 | table = schemaTable[1] |
| 1127 | } |
| 1128 | return schema, table |
| 1129 | } |
| 1130 | |
| 1131 | // TableDDLComponentsCache holds pre-fetched schema data for all tables in a single batch, |
| 1132 | // keyed by qualified table name (schema.table format). |
no outgoing calls
no test coverage detected