MCPcopy
hub / github.com/ent/ent / AppendSelectAs

Method AppendSelectAs

dialect/sql/builder.go:1774–1777  ·  view source on GitHub ↗

AppendSelectAs appends additional column to the SELECT statement with the given alias.

(column, as string)

Source from the content-addressed store, hash-verified

1772
1773// AppendSelectAs appends additional column to the SELECT statement with the given alias.
1774func (s *Selector) AppendSelectAs(column, as string) *Selector {
1775 s.selection = append(s.selection, selection{c: column, as: as})
1776 return s
1777}
1778
1779// SelectExpr changes the columns selection of the SELECT statement
1780// with custom list of expressions.

Callers 3

SelectFunction · 0.80
selectTermsFunction · 0.80

Calls

no outgoing calls

Tested by 2

SelectFunction · 0.64