- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 135 for udpate (0.23 sec)
-
tests/hooks_test.go
} if beforeUpdateCall != 1 { t.Fatalf("before update should not be called") } err = DB.Model([1]*Product5{&p}).Update("name", "update_name_3").Error if err != nil { t.Fatalf("should update success, but got err %v", err) } if beforeUpdateCall != 2 { t.Fatalf("before update should be called") } err = DB.Model([1]Product5{p}).Update("name", "update_name_4").Error if !errors.Is(err, gorm.ErrInvalidValue) {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Feb 18 01:20:29 GMT 2023 - 15.9K bytes - Viewed (0) -
tests/upsert_test.go
t.Fatalf("failed to onconflict create user, got error %v", err) } else { var user3 User DB.First(&user3, user.ID) if user3.UpdatedAt.UnixNano() == user2.UpdatedAt.UnixNano() { t.Fatalf("failed to update user's updated_at, old: %v, new: %v", user2.UpdatedAt, user3.UpdatedAt) } } } func TestUpsertSlice(t *testing.T) { langs := []Language{ {Code: "upsert-slice1", Name: "Upsert-slice1"},
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Sep 05 07:39:19 GMT 2022 - 11.4K bytes - Viewed (0) -
cmd/bucket-replication-stats.go
func (r *ReplicationStats) srUpdate(sr replStat) { dID, err := globalSiteReplicationSys.getDeplIDForEndpoint(sr.endpoint()) if err == nil { r.srStats.update(sr, dID) } } // Update updates in-memory replication statistics with new values. func (r *ReplicationStats) Update(bucket string, ri replicatedTargetInfo, status, prevStatus replication.StatusType) { if r == nil { return } var rs replStat switch status {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 13.4K bytes - Viewed (0) -
cmd/metrics-resource.go
metric.Avg = metric.Sum / float64(metric.Count) subsysMetrics[key] = metric resourceMetricsMap[subSys] = subsysMetrics } // updateDriveIOStats - Updates the drive IO stats by calculating the difference between the current and latest updated values. func updateDriveIOStats(currentStats madmin.DiskIOStats, latestStats madmin.DiskIOStats, labels map[string]string) { sectorSize := uint64(512) kib := float64(1 << 10)
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 23 23:56:12 GMT 2024 - 17.4K bytes - Viewed (0) -
chainable_api.go
"gorm.io/gorm/utils" ) // Model specify the model you would like to run db operations // // // update all users's name to `hello` // db.Model(&User{}).Update("name", "hello") // // if user's primary key is non-blank, will use it as condition, then will only update that user's name to `hello` // db.Model(&user).Update("name", "hello") func (db *DB) Model(value interface{}) (tx *DB) { tx = db.getInstance() tx.Statement.Model = value
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Wed Apr 17 03:38:55 GMT 2024 - 14.3K bytes - Viewed (1) -
cmd/update.go
// Check if we are in DCOS environment, return // deployment guide for update procedures. if IsDCOS() { return mesosDeploymentDoc } // Check if we are in kubernetes environment, return // deployment guide for update procedures. if IsKubernetes() { return kubernetesDeploymentDoc } // Check if we are docker environment, return docker update command if IsDocker() { // Construct release tag name.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Apr 24 04:08:47 GMT 2024 - 18.7K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
} log.Debug("calling CreateInpodRules") if err := s.netnsRunner(openNetns, func() error { return s.iptablesConfigurator.CreateInpodRules(&HostProbeSNATIP) }); err != nil { log.Errorf("failed to update POD inpod: %s/%s %v", pod.Namespace, pod.Name, err) return err } log.Debug("notifying subscribed node proxies") if err := s.sendPodToZtunnelAndWaitForAck(ctx, pod, openNetns); err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1) -
cmd/admin-router.go
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Mar 10 21:09:36 GMT 2024 - 25.5K bytes - Viewed (0) -
cmd/erasure-metadata.go
// Tags have also been extracted, we remove that as well. objInfo.UserDefined = cleanMetadata(fi.Metadata) // All the parts per object. objInfo.Parts = fi.Parts // Update storage class if fi.TransitionTier != "" { objInfo.StorageClass = fi.TransitionTier } else if sc, ok := fi.Metadata[xhttp.AmzStorageClass]; ok { objInfo.StorageClass = sc } else {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Apr 28 17:53:50 GMT 2024 - 19.2K bytes - Viewed (1) -
src/archive/tar/format.go
case format.has(FormatUSTAR | FormatPAX): copy(b.toUSTAR().magic(), magicUSTAR) copy(b.toUSTAR().version(), versionUSTAR) default: panic("invalid format") } // Update checksum. // This field is special in that it is terminated by a NULL then space. var f formatter field := b.toV7().chksum() chksum, _ := b.computeChecksum() // Possible values are 256..128776
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 11.3K bytes - Viewed (0)