Update allows overriding fields `UPDATE` values. See the InviteCodeCreateBulk.OnConflict documentation for more info.
(set func(*InviteCodeUpsert))
| 858 | // Update allows overriding fields `UPDATE` values. See the InviteCodeCreateBulk.OnConflict |
| 859 | // documentation for more info. |
| 860 | func (u *InviteCodeUpsertBulk) Update(set func(*InviteCodeUpsert)) *InviteCodeUpsertBulk { |
| 861 | u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(update *sql.UpdateSet) { |
| 862 | set(&InviteCodeUpsert{UpdateSet: update}) |
| 863 | })) |
| 864 | return u |
| 865 | } |
| 866 | |
| 867 | // SetCodeHash sets the "code_hash" field. |
| 868 | func (u *InviteCodeUpsertBulk) SetCodeHash(v string) *InviteCodeUpsertBulk { |
no outgoing calls
no test coverage detected