MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / SQL

Method SQL

pkg/sql/ast/sql.go:498–503  ·  view source on GitHub ↗

SQL returns the SQL representation of this CUBE expression as "CUBE(col1, col2, ...)".

()

Source from the content-addressed store, hash-verified

496// SQL returns the SQL representation of this CUBE expression as
497// "CUBE(col1, col2, ...)".
498func (c *CubeExpression) SQL() string {
499 if c == nil {
500 return ""
501 }
502 return "CUBE(" + exprListSQL(c.Expressions) + ")"
503}
504
505// SQL returns the SQL representation of this GROUPING SETS expression as
506// "GROUPING SETS((a, b), (a), ())".

Callers 2

TestCubeExpression_SQLFunction · 0.95
TestNilSQLFunction · 0.95

Calls 1

exprListSQLFunction · 0.70

Tested by 2

TestCubeExpression_SQLFunction · 0.76
TestNilSQLFunction · 0.76