UpdateCommand - Part of Command that allow to change existing data Example: UPDATE table SET col1 TO 2 WHERE column1 NOT 'hi';
| 294 | // Example: |
| 295 | // UPDATE table SET col1 TO 2 WHERE column1 NOT 'hi'; |
| 296 | type 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 | |
| 303 | func (ls UpdateCommand) CommandNode() {} |
| 304 | func (ls UpdateCommand) TokenLiteral() string { return ls.Token.Literal } |
nothing calls this directly
no outgoing calls
no test coverage detected