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

Method SQL

pkg/sql/ast/sql.go:259–264  ·  view source on GitHub ↗

SQL returns the SQL representation of this WHEN clause in the form "WHEN condition THEN result".

()

Source from the content-addressed store, hash-verified

257// SQL returns the SQL representation of this WHEN clause in the form
258// "WHEN condition THEN result".
259func (w *WhenClause) SQL() string {
260 if w == nil {
261 return ""
262 }
263 return fmt.Sprintf("WHEN %s THEN %s", exprSQL(w.Condition), exprSQL(w.Result))
264}
265
266// SQL returns the SQL representation of this BETWEEN expression.
267// The NOT modifier is included when BetweenExpression.Not is true.

Callers

nothing calls this directly

Calls 1

exprSQLFunction · 0.70

Tested by

no test coverage detected