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

Method GroupBy

sql/dml/select.go:231–234  ·  view source on GitHub ↗

GroupBy appends columns to group the statement. A column gets always quoted if it is a valid identifier otherwise it will be treated as an expression. MySQL does not sort the results set. To avoid the overhead of sorting that GROUP BY produces this function should add an ORDER BY NULL with function

(columns ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestWith_ToSQLFunction · 0.80
TestInsert_FromSelectFunction · 0.80
TestSelect_CloneFunction · 0.80
TestSelect_FullToSQLFunction · 0.80
TestSelect_ComplexExprFunction · 0.80
TestSelect_SetRecordFunction · 0.80

Calls 1

AppendColumnsMethod · 0.80

Tested by 15

TestWith_ToSQLFunction · 0.64
TestInsert_FromSelectFunction · 0.64
TestSelect_CloneFunction · 0.64
TestSelect_FullToSQLFunction · 0.64
TestSelect_ComplexExprFunction · 0.64
TestSelect_SetRecordFunction · 0.64