MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / SelectCommand

Struct SelectCommand

ast/ast.go:194–204  ·  view source on GitHub ↗

SelectCommand - Part of Command that represent selecting values from tables Example: SELECT one, two FROM table1;

Source from the content-addressed store, hash-verified

192// Example:
193// SELECT one, two FROM table1;
194type SelectCommand struct {
195 Token token.Token
196 Name Identifier // ex. name of table
197 Space []Space // ex. column names
198 HasDistinct bool // DISTINCT keyword has been used
199 WhereCommand *WhereCommand // optional
200 OrderByCommand *OrderByCommand // optional
201 LimitCommand *LimitCommand // optional
202 OffsetCommand *OffsetCommand // optional
203 JoinCommand *JoinCommand // optional
204}
205
206func (ls SelectCommand) CommandNode() {}
207func (ls SelectCommand) TokenLiteral() string { return ls.Token.Literal }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected