MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / logTablesWithTruncation

Function logTablesWithTruncation

plugins/destination/mysql/client/write.go:49–58  ·  view source on GitHub ↗
(logger zerolog.Logger, tables map[string]bool)

Source from the content-addressed store, hash-verified

47}
48
49func logTablesWithTruncation(logger zerolog.Logger, tables map[string]bool) {
50 if len(tables) == 0 {
51 return
52 }
53 keys := maps.Keys(tables)
54 for k := range tables {
55 keys = append(keys, k)
56 }
57 logger.Warn().Strs("tables", keys).Msg("tables contain a value in a primary key that is longer than what is supported by MySQL. only the first 191 characters will be included in the index. To see the complete record enable debug logs using `--log-level debug`")
58}
59
60func (c *Client) writeResources(ctx context.Context, overwrite bool, table *schema.Table, msgs message.WriteInserts) error {
61 tablesWithTruncation := make(map[string]bool)

Callers 1

writeResourcesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected