MCPcopy Create free account
hub / github.com/uptrace/bun / Column

Method Column

query_select.go:135–140  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Column adds columns to the SELECT clause.

(columns ...string)

Source from the content-addressed store, hash-verified

133
134// Column adds columns to the SELECT clause.
135func (q *SelectQuery) Column(columns ...string) *SelectQuery {
136 for _, column := range columns {
137 q.addColumn(schema.UnsafeIdent(column))
138 }
139 return q
140}
141
142// ColumnExpr adds a column expression to the SELECT clause with arguments.
143func (q *SelectQuery) ColumnExpr(query string, args ...any) *SelectQuery {

Callers 15

AfterCreateTableMethod · 0.45
mainFunction · 0.45
AfterCreateTableMethod · 0.45
selectFacetsFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
InitMethod · 0.45
testBookRelationsFunction · 0.45
testAuthorRelationsFunction · 0.45
testGenreRelationsFunction · 0.45
testTranslationRelationsFunction · 0.45

Calls 2

UnsafeIdentFunction · 0.92
addColumnMethod · 0.45

Tested by 13

testBookRelationsFunction · 0.36
testAuthorRelationsFunction · 0.36
testGenreRelationsFunction · 0.36
testTranslationRelationsFunction · 0.36
testRelationColumnFunction · 0.36
TestPostgresArrayFunction · 0.36
TestPostgresTimeArrayFunction · 0.36
TestPostgresHStoreFunction · 0.36
TestPostgresJSONBFunction · 0.36
testSelectCountFunction · 0.36
TestQueryFunction · 0.36
testSoftDeleteForceFunction · 0.36