MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/scion / Update

Method Update

pkg/ent/invitecode_create.go:860–865  ·  view source on GitHub ↗

Update allows overriding fields `UPDATE` values. See the InviteCodeCreateBulk.OnConflict documentation for more info.

(set func(*InviteCodeUpsert))

Source from the content-addressed store, hash-verified

858// Update allows overriding fields `UPDATE` values. See the InviteCodeCreateBulk.OnConflict
859// documentation for more info.
860func (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.
868func (u *InviteCodeUpsertBulk) SetCodeHash(v string) *InviteCodeUpsertBulk {

Callers 15

SetCodeHashMethod · 0.95
UpdateCodeHashMethod · 0.95
SetCodePrefixMethod · 0.95
UpdateCodePrefixMethod · 0.95
SetMaxUsesMethod · 0.95
AddMaxUsesMethod · 0.95
UpdateMaxUsesMethod · 0.95
SetUseCountMethod · 0.95
AddUseCountMethod · 0.95
UpdateUseCountMethod · 0.95
SetExpiresAtMethod · 0.95
UpdateExpiresAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected