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

Method SQL

pkg/sql/ast/sql.go:214–219  ·  view source on GitHub ↗

SQL returns the SQL representation of this aliased expression in the form "expr AS alias".

()

Source from the content-addressed store, hash-verified

212// SQL returns the SQL representation of this aliased expression in the form
213// "expr AS alias".
214func (a *AliasedExpression) SQL() string {
215 if a == nil {
216 return ""
217 }
218 return exprSQL(a.Expr) + " AS " + a.Alias
219}
220
221// SQL returns the SQL representation of this CAST expression in the form
222// "CAST(expr AS type)".

Callers

nothing calls this directly

Calls 1

exprSQLFunction · 0.70

Tested by

no test coverage detected