(ctx context.Context, name string, msgs message.WriteInserts)
| 133 | } |
| 134 | |
| 135 | func (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 | } |
nothing calls this directly
no test coverage detected