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

Struct OrderByCommand

ast/ast.go:397–400  ·  view source on GitHub ↗

OrderByCommand - Part of Command that ordering columns from SelectCommand Example: ORDER BY column1 ASC, column2 DESC;

Source from the content-addressed store, hash-verified

395// Example:
396// ORDER BY column1 ASC, column2 DESC;
397type OrderByCommand struct {
398 Token token.Token
399 SortPatterns []SortPattern // column name and sorting type
400}
401
402func (ls OrderByCommand) CommandNode() {}
403func (ls OrderByCommand) TokenLiteral() string { return ls.Token.Literal }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected