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

Struct CaseExpression

pkg/sql/ast/ast.go:754–759  ·  view source on GitHub ↗

CaseExpression represents a CASE expression

Source from the content-addressed store, hash-verified

752
753// CaseExpression represents a CASE expression
754type CaseExpression struct {
755 Value Expression // Optional CASE value
756 WhenClauses []WhenClause
757 ElseClause Expression
758 Pos models.Location // Source position of the CASE keyword (1-based line and column)
759}
760
761func (c *CaseExpression) expressionNode() {}
762func (c CaseExpression) TokenLiteral() string { return "CASE" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected