MCPcopy
hub / github.com/ent/ent / AppendSelect

Method AppendSelect

dialect/sql/builder.go:1766–1771  ·  view source on GitHub ↗

AppendSelect appends additional columns to the SELECT statement.

(columns ...string)

Source from the content-addressed store, hash-verified

1764
1765// AppendSelect appends additional columns to the SELECT statement.
1766func (s *Selector) AppendSelect(columns ...string) *Selector {
1767 for i := range columns {
1768 s.selection = append(s.selection, selection{c: columns[i]})
1769 }
1770 return s
1771}
1772
1773// AppendSelectAs appends additional column to the SELECT statement with the given alias.
1774func (s *Selector) AppendSelectAs(column, as string) *Selector {

Callers 15

SelectFunction · 0.80
RelationFunction · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
loadFriendsMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80
sqlScanMethod · 0.80

Calls

no outgoing calls

Tested by 4

SelectFunction · 0.64
RelationFunction · 0.64
TestWindowFunctionFunction · 0.64