InsertStatement represents an INSERT SQL statement
| 1243 | |
| 1244 | // InsertStatement represents an INSERT SQL statement |
| 1245 | type InsertStatement struct { |
| 1246 | With *WithClause |
| 1247 | TableName string |
| 1248 | Columns []Expression |
| 1249 | Output []Expression // SQL Server OUTPUT clause columns |
| 1250 | Values [][]Expression // Multi-row support: each inner slice is one row of values |
| 1251 | Query QueryExpression // For INSERT ... SELECT (SelectStatement or SetOperation) |
| 1252 | Returning []Expression |
| 1253 | OnConflict *OnConflict |
| 1254 | OnDuplicateKey *UpsertClause // MySQL: ON DUPLICATE KEY UPDATE |
| 1255 | Pos models.Location // Source position of the INSERT keyword (1-based line and column) |
| 1256 | } |
| 1257 | |
| 1258 | func (i *InsertStatement) statementNode() {} |
| 1259 | func (i InsertStatement) TokenLiteral() string { return "INSERT" } |
nothing calls this directly
no outgoing calls
no test coverage detected