MCPcopy Create free account
hub / github.com/corestoreio/pkg / AddColumns

Method AddColumns

sql/dml/select.go:172–175  ·  view source on GitHub ↗

AddColumns appends more columns to the Columns slice. If a column name is not valid identifier that column gets switched into an expression. AddColumns("a","b") // `a`,`b` AddColumns("a,b","z","c,d") // a,b,`z`,c,d AddColumns("t1.name","t1.sku","price") // `t1`.`name`, `t1`.`sku`,`price`

(cols ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestSelect_QueryContextFunction · 0.95
TestSelect_ColumnsFunction · 0.95

Calls 1

AppendColumnsMethod · 0.80

Tested by 2

TestSelect_QueryContextFunction · 0.76
TestSelect_ColumnsFunction · 0.76