OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example: client.Node.Create(). SetCreatedAt(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Overrid
(opts ...sql.ConflictOption)
| 363 | // }). |
| 364 | // Exec(ctx) |
| 365 | func (nc *NodeCreate) OnConflict(opts ...sql.ConflictOption) *NodeUpsertOne { |
| 366 | nc.conflict = opts |
| 367 | return &NodeUpsertOne{ |
| 368 | create: nc, |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | // OnConflictColumns calls `OnConflict` and configures the columns |
| 373 | // as conflict target. Using this option is equivalent to using: |
nothing calls this directly
no outgoing calls
no test coverage detected