- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setVolume (0.27 sec)
-
statement.go
newStmt.Settings.Store(k, v) return true }) return newStmt } // SetColumn set column's value // // stmt.SetColumn("Name", "jinzhu") // Hooks Method // stmt.SetColumn("Name", "jinzhu", true) // Callbacks Method func (stmt *Statement) SetColumn(name string, value interface{}, fromCallbacks ...bool) { if v, ok := stmt.Dest.(map[string]interface{}); ok { v[name] = value
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 19.8K bytes - Viewed (0) -
tests/hooks_test.go
} func (s Product3) BeforeCreate(tx *gorm.DB) (err error) { tx.Statement.SetColumn("Price", s.Price+100) return nil } func (s Product3) BeforeUpdate(tx *gorm.DB) (err error) { if tx.Statement.Changed() { tx.Statement.SetColumn("Price", s.Price+10) } if tx.Statement.Changed("Code") { s.Price += 20 tx.Statement.SetColumn("Price", s.Price+30) } return nil }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sat Feb 18 01:20:29 UTC 2023 - 15.9K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
name := action.(core.GetAction).GetName() volume, found := r.volumes[name] if found { logger.V(4).Info("GetVolume: found volume", "volumeName", volume.Name) return true, volume.DeepCopy(), nil } logger.V(4).Info("GetVolume: volume not found", "volumeName", name) return true, nil, apierrors.NewNotFound(action.GetResource().GroupResource(), name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/framework_test.go
retVolume := newVolume(name, capacity, boundToClaimUID, boundToClaimName, phase, reclaimPolicy, class, annotations...) retVolume.SetFinalizers(finalizers) return retVolume } // withLabels applies the given labels to the first volume in the array and
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 09:54:00 UTC 2023 - 38.3K bytes - Viewed (0)