MCPcopy
hub / github.com/sqldef/sqldef / Insert

Struct Insert

parser/node.go:374–383  ·  view source on GitHub ↗

Insert represents an INSERT or REPLACE statement. Per the MySQL docs, http://dev.mysql.com/doc/refman/5.7/en/replace.html Replace is the counterpart to `INSERT IGNORE`, and works exactly like a normal INSERT except if the row exists. In that case it first deletes the row and re-inserts with new valu

Source from the content-addressed store, hash-verified

372// of the implications the deletion part may have on the original parser.
373// If you add fields here, consider adding them to calls to validateSubquerySamePlan.
374type Insert struct {
375 Action string
376 Comments Comments
377 Ignore string
378 Table TableName
379 Partitions Partitions
380 Columns Columns
381 Rows InsertRows
382 OnDup OnDup
383}
384
385// DDL strings.
386const (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected