Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 741 for UPDATE (0.15 seconds)

  1. tests/update_has_many_test.go

    )
    
    func TestUpdateHasManyAssociations(t *testing.T) {
    	user := *GetUser("update-has-many", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}}
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Pets").Find(&user2, "id = ?", user.ID)
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          return (Listener) listenersUpdater.getAndSet(future, update);
        }
    
        @Override
        @Nullable Waiter gasWaiters(AbstractFutureState<?> future, Waiter update) {
          return (Waiter) waitersUpdater.getAndSet(future, update);
        }
    
        @Override
        boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) {
          return valueUpdater.compareAndSet(future, expect, update);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 34.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          return listenersUpdater.getAndSet(future, update);
        }
    
        @Override
        @Nullable Waiter gasWaiters(AbstractFutureState<?> future, Waiter update) {
          return waitersUpdater.getAndSet(future, update);
        }
    
        @Override
        boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) {
          return valueUpdater.compareAndSet(future, expect, update);
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  4. tests/customize_field_test.go

    		gorm.Model
    		Name                    string
    		FieldAllowCreate        string `gorm:"<-:create"`
    		FieldAllowUpdate        string `gorm:"<-:update"`
    		FieldAllowSave          string `gorm:"<-"`
    		FieldAllowSave2         string `gorm:"<-:create,update"`
    		FieldAllowSave3         string `gorm:"->:false;<-:create"`
    		FieldReadonly           string `gorm:"->"`
    		FieldIgnore             string `gorm:"-"`
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 11 09:33:31 GMT 2020
    - 6.9K bytes
    - Click Count (0)
  5. cmd/storage-rest-common_gen.go

    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Update")
    					return
    				}
    				z.Update = nil
    			} else {
    				if z.Update == nil {
    					z.Update = new(dataUsageEntry)
    				}
    				err = z.Update.DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Update")
    					return
    				}
    			}
    		case "f":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  6. internal/cachevalue/cache.go

    // NewFromFunc allocates a new cached value instance and initializes it with an
    // update function, making it ready for use.
    func NewFromFunc[T any](ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) *Cache[T] {
    	return &Cache[T]{
    		ttl:      ttl,
    		updateFn: update,
    		opts:     opts,
    	}
    }
    
    // InitOnce initializes the cache with a TTL and an update function. It is
    // guaranteed to be called only once.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 12:50:46 GMT 2024
    - 4.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      protected abstract void update(byte b);
    
      /** Updates this hasher with the given bytes. */
      protected void update(byte[] b) {
        update(b, 0, b.length);
      }
    
      /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */
      protected void update(byte[] b, int off, int len) {
        for (int i = off; i < off + len; i++) {
          update(b[i]);
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 12:40:17 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  8. tests/association_generics_test.go

    	if rows != 0 {
    		t.Fatalf("expected 0 rows affected for association-only update, got %d", rows)
    	}
    
    	// Verify the association was created using real database query
    	AssertAssociationCount(t, &user, "Pets", 1, "after Set Update with association")
    }
    
    // Test Set + Update with Association OpCreate operation using real database
    func TestClauseAssociationSetUpdateWithOpCreate(t *testing.T) {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 12 05:42:26 GMT 2025
    - 37.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

       * @param expect the expected value
       * @param update the new value
       * @return true if successful. False return indicates that the actual value was not equal to the
       *     expected value.
       */
      public final boolean compareAndSet(int i, double expect, double update) {
        return longs.compareAndSet(i, doubleToRawLongBits(expect), doubleToRawLongBits(update));
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  10. clause/update_test.go

    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Update{}},
    			"UPDATE `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Update{Modifier: "LOW_PRIORITY"}},
    			"UPDATE LOW_PRIORITY `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Update{Table: clause.Table{Name: "products"}, Modifier: "LOW_PRIORITY"}},
    			"UPDATE LOW_PRIORITY `products`", nil,
    		},
    	}
    
    	for idx, result := range results {
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Jun 02 01:18:01 GMT 2020
    - 722 bytes
    - Click Count (0)
Back to Top