(sc *schema.Table)
| 18 | ) |
| 19 | |
| 20 | func 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, |