Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for updatesum (0.06 sec)

  1. generics.go

    	var r T
    	res := c.g.apply(ctx).Model(r).Update(name, value)
    	return int(res.RowsAffected), res.Error
    }
    
    func (c chainG[T]) Updates(ctx context.Context, t T) (rowsAffected int, err error) {
    	res := c.g.apply(ctx).Updates(t)
    	return int(res.RowsAffected), res.Error
    }
    
    func (c chainG[T]) Count(ctx context.Context, column string) (result int64, err error) {
    	var r T
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. cmd/object-api-interface.go

    type ObjectLayer interface {
    	// Locking operations on object.
    	NewNSLock(bucket string, objects ...string) RWLocker
    
    	// Storage operations.
    	Shutdown(context.Context) error
    	NSScanner(ctx context.Context, updates chan<- DataUsageInfo, wantCycle uint32, scanMode madmin.HealScanMode) error
    	BackendInfo() madmin.BackendInfo
    	Legacy() bool // Only returns true for deployments which use CRCMOD as its object distribution algorithm.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. tests/generics_test.go

    		t.Fatalf("failed to find user, got error: %v", err)
    	} else if nu.Name != name || u.ID != nu.ID {
    		t.Fatalf("found invalid user, got %v, expect %v", nu.ID, u.ID)
    	}
    
    	rows, err = gorm.G[User](DB).Where("id = ?", u.ID).Updates(ctx, User{Name: "GenericsExecUpdates", Age: 18})
    	if rows != 1 {
    		t.Fatalf("failed to get affected rows, got %d, should be %d", rows, 1)
    	}
    
    	nu, err = gorm.G[User](DB).Where("id = ?", u.ID).Last(ctx)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    		z.rebalMu.Unlock()
    	} else if !errors.Is(err, errConfigNotFound) {
    		rebalanceLogIf(ctx, fmt.Errorf("failed to load rebalance metadata, continue to restart rebalance as needed: %w", err))
    	}
    	return nil
    }
    
    // updates rebalance.bin from let's say 2 pool setup in the middle
    // of a rebalance, was expanded can cause z.rebalMeta to be outdated
    // due to a missing new pool. This function tries to handle this
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 04 20:47:24 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    	if !dstOpts.NoAuditLog {
    		auditObjectErasureSet(ctx, "CopyObject", dstObject, &er)
    	}
    
    	// This call shouldn't be used for anything other than metadata updates or adding self referential versions.
    	if !srcInfo.metadataOnly {
    		return oi, NotImplemented{}
    	}
    
    	if !dstOpts.NoLock {
    		lk := er.NewNSLock(dstBucket, dstObject)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

        * Update documentation: [Response Model](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_include-and-response_model_exclude).
        * Add docs for: [Body - updates](https://fastapi.tiangolo.com/tutorial/body-updates/), using Pydantic's `skip_defaults`.
        * Add method consistency tests.
        * PR [#264](https://github.com/tiangolo/fastapi/pull/264).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    	metadata := cloneMSS(objInfo.UserDefined)
    
    	// update self with restore metadata
    	if rreq.Type != SelectRestoreRequest {
    		objInfo.metadataOnly = true // Perform only metadata updates.
    		metadata[xhttp.AmzRestoreExpiryDays] = strconv.Itoa(rreq.Days)
    		metadata[xhttp.AmzRestoreRequestDate] = time.Now().UTC().Format(http.TimeFormat)
    		if alreadyRestored {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top