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

Function keyListColumn

plugins/destination/duckdb/client/write.go:51–53  ·  view source on GitHub ↗

keyListColumn reports whether a column is part of a key (primary key or unique constraint) and maps to a duckdb LIST type, which can't be indexed.

(c schema.Column)

Source from the content-addressed store, hash-verified

49// keyListColumn reports whether a column is part of a key (primary key or unique
50// constraint) and maps to a duckdb LIST type, which can't be indexed.
51func keyListColumn(c schema.Column) bool {
52 return (c.PrimaryKey || c.Unique) && duckDBListColumn(c)
53}
54
55func duckDBType(c schema.Column) string {
56 if keyListColumn(c) {

Callers 5

normalizeColumnsMethod · 0.85
containsListFunction · 0.85
duckDBTypeFunction · 0.85

Calls 1

duckDBListColumnFunction · 0.85

Tested by 1