Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Assignment (0.05 sec)

  1. callbacks/create.go

    								if field.AutoUpdateTime > 0 {
    									assignment := clause.Assignment{Column: clause.Column{Name: field.DBName}, Value: curTime}
    									switch field.AutoUpdateTime {
    									case schema.UnixNanosecond:
    										assignment.Value = curTime.UnixNano()
    									case schema.UnixMillisecond:
    										assignment.Value = curTime.UnixMilli()
    									case schema.UnixSecond:
    										assignment.Value = curTime.Unix()
    									}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. tests/association_generics_test.go

    	}
    
    	// Test Set + Create with belongs-to association using field assignment
    	err := gorm.G[User](DB).Set(
    		clause.Assignment{Column: clause.Column{Name: "name"}, Value: "TestClauseAssociationSetCreateWithBelongsTo"},
    		clause.Assignment{Column: clause.Column{Name: "age"}, Value: 25},
    		clause.Assignment{Column: clause.Column{Name: "company_id"}, Value: company.ID},
    	).Create(ctx)
    	if err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 12 05:42:26 UTC 2025
    - 37.9K bytes
    - Viewed (0)
  3. tests/generics_test.go

    		Type:        clause.OpCreate,
    		Set: []clause.Assignment{
    			{Column: clause.Column{Name: "amount"}, Value: 100},
    			{Column: clause.Column{Name: "state"}, Value: "new"},
    		},
    	}
    
    	// Verify it implements Assigner interface
    	assignments := assoc.Assignments()
    	if len(assignments) != 0 {
    		t.Errorf("Association.Assignments() should return empty slice, got %v", assignments)
    	}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Ascii.java

       * processing or telecommunication systems, more especially switching devices "on" or "off." (If a
       * single "stop" control is required to interrupt or turn off ancillary devices, DC4 is the
       * preferred assignment.)
       *
       * @since 8.0
       */
      public static final byte DC1 = 17; // aka XON
    
      /**
       * Transmission On: Although originally defined as DC1, this ASCII control character is now better
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  5. generics.go

    	var (
    		assigns  []clause.Assignment
    		assocOps []clause.Association
    	)
    
    	for _, item := range items {
    		// Check if it's an AssociationAssigner
    		if assocAssigner, ok := item.(clause.AssociationAssigner); ok {
    			assocOps = append(assocOps, assocAssigner.AssociationAssignments()...)
    		} else {
    			assigns = append(assigns, item.Assignments()...)
    		}
    	}
    
    	return setCreateOrUpdateG[T]{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

         * This is an unsynchronized read! After the read, the function returns immediately or acquires
         * the lock to check again. Since an IDLE state was observed inside the preceding synchronized
         * block, and reference field assignment is atomic, this may save reacquiring the lock when
         * another thread or the worker task has cleared the count and set the state.
         *
         * <p>When {@link #executor} is a directExecutor(), the value written to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/SequentialExecutor.java

         * This is an unsynchronized read! After the read, the function returns immediately or acquires
         * the lock to check again. Since an IDLE state was observed inside the preceding synchronized
         * block, and reference field assignment is atomic, this may save reacquiring the lock when
         * another thread or the worker task has cleared the count and set the state.
         *
         * <p>When {@link #executor} is a directExecutor(), the value written to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

              () -> {
                lock.lock();
                try {
                  startUp();
                  /*
                   * requireNonNull is safe because executorService is never cleared after the
                   * assignment above.
                   */
                  requireNonNull(executorService);
                  runningTask = scheduler().schedule(delegate, executorService, task);
                  notifyStarted();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // of the values gets evicted. With weak keys, we use identity equality, which means using
        // System.identityHashCode, which means the assignment of keys to segments is nondeterministic,
        // so more than (maximumSize / #segments) keys could get assigned to the same segment, which
        // would cause one to be evicted.
        return new CacheBuilderFactory()
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

              () -> {
                lock.lock();
                try {
                  startUp();
                  /*
                   * requireNonNull is safe because executorService is never cleared after the
                   * assignment above.
                   */
                  requireNonNull(executorService);
                  runningTask = scheduler().schedule(delegate, executorService, task);
                  notifyStarted();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.7K bytes
    - Viewed (0)
Back to top