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

Struct LiteralValue

pkg/sql/ast/ast.go:1000–1003  ·  view source on GitHub ↗

LiteralValue represents a literal value in SQL

Source from the content-addressed store, hash-verified

998
999// LiteralValue represents a literal value in SQL
1000type LiteralValue struct {
1001 Value interface{}
1002 Type string // INTEGER, FLOAT, STRING, BOOLEAN, NULL, etc.
1003}
1004
1005func (l *LiteralValue) expressionNode() {}
1006func (l LiteralValue) TokenLiteral() string { return fmt.Sprintf("%v", l.Value) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected