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

Struct InsertCommand

ast/ast.go:161–165  ·  view source on GitHub ↗

InsertCommand - Part of Command that represent insertion of values into columns Example: INSERT INTO table1 VALUES('hello', 1);

Source from the content-addressed store, hash-verified

159// Example:
160// INSERT INTO table1 VALUES('hello', 1);
161type InsertCommand struct {
162 Token token.Token
163 Name Identifier // name of the table
164 Values []token.Token
165}
166
167func (ls InsertCommand) CommandNode() {}
168func (ls InsertCommand) TokenLiteral() string { return ls.Token.Literal }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected