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

Function nonPkIndices

plugins/destination/duckdb/client/write.go:20–28  ·  view source on GitHub ↗
(sc *schema.Table)

Source from the content-addressed store, hash-verified

18)
19
20func nonPkIndices(sc *schema.Table) []int {
21 var indices []int
22 for i, c := range sc.Columns {
23 if !c.PrimaryKey {
24 indices = append(indices, i)
25 }
26 }
27 return indices
28}
29
30// At time of writing (March 2023), duckdb does not support updating list columns.
31// As a workaround, we delete the row and insert it again. This makes it non-atomic, unfortunately,

Callers 1

upsertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected