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

Method WriteTableBatch

plugins/destination/mysql/client/write.go:135–145  ·  view source on GitHub ↗
(ctx context.Context, name string, msgs message.WriteInserts)

Source from the content-addressed store, hash-verified

133}
134
135func (c *Client) WriteTableBatch(ctx context.Context, name string, msgs message.WriteInserts) error {
136 if len(msgs) == 0 {
137 return nil
138 }
139 table := msgs[0].GetTable()
140 hasPks := len(table.PrimaryKeys()) > 0
141 if hasPks {
142 return c.overwriteTableBatch(ctx, msgs)
143 }
144 return c.appendTableBatch(ctx, msgs)
145}

Callers

nothing calls this directly

Calls 2

overwriteTableBatchMethod · 0.95
appendTableBatchMethod · 0.95

Tested by

no test coverage detected