OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using: client.Node.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
(columns ...string)
| 376 | // OnConflict(sql.ConflictColumns(columns...)). |
| 377 | // Exec(ctx) |
| 378 | func (nc *NodeCreate) OnConflictColumns(columns ...string) *NodeUpsertOne { |
| 379 | nc.conflict = append(nc.conflict, sql.ConflictColumns(columns...)) |
| 380 | return &NodeUpsertOne{ |
| 381 | create: nc, |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | type ( |
| 386 | // NodeUpsertOne is the builder for "upsert"-ing |
nothing calls this directly
no outgoing calls
no test coverage detected