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

Struct UpdateCommand

ast/ast.go:296–301  ·  view source on GitHub ↗

UpdateCommand - Part of Command that allow to change existing data Example: UPDATE table SET col1 TO 2 WHERE column1 NOT 'hi';

Source from the content-addressed store, hash-verified

294// Example:
295// UPDATE table SET col1 TO 2 WHERE column1 NOT 'hi';
296type UpdateCommand struct {
297 Token token.Token
298 Name Identifier // ex. name of table
299 Changes map[token.Token]Anonymitifier // column names with new values
300 WhereCommand *WhereCommand // optional
301}
302
303func (ls UpdateCommand) CommandNode() {}
304func (ls UpdateCommand) TokenLiteral() string { return ls.Token.Literal }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected