Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,031 for created2 (0.36 sec)

  1. tests/create_test.go

    func TestCreateFromMap(t *testing.T) {
    	if err := DB.Model(&User{}).Create(map[string]interface{}{"Name": "create_from_map", "Age": 18}).Error; err != nil {
    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	var result User
    	if err := DB.Where("name = ?", "create_from_map").First(&result).Error; err != nil || result.Age != 18 {
    		t.Fatalf("failed to create from map, got error %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  2. callbacks/create.go

    				if i, ok := value.(BeforeCreateInterface); ok {
    					called = true
    					db.AddError(i.BeforeCreate(tx))
    				}
    			}
    			return called
    		})
    	}
    }
    
    // Create create hook
    func Create(config *Config) func(db *gorm.DB) {
    	supportReturning := utils.Contains(config.CreateClauses, "RETURNING")
    
    	return func(db *gorm.DB) {
    		if db.Error != nil {
    			return
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ConcurrencyTest.java

                            create2.setOverrideTimeout(1000);
                            create2.setCreateDisposition(Smb2CreateRequest.FILE_OPEN_IF);
                            create2.setRequestedOplockLevel(Smb2CreateRequest.SMB2_OPLOCK_LEVEL_BATCH);
    
                            create2.chain(new Smb2CloseRequest(sess.getConfig(), Smb2Constants.UNSPECIFIED_FILEID));
    
                            synchronized ( lock ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Striped.java

          L existing = locks.get(index);
          if (existing != null) {
            return existing;
          }
          L created = supplier.get();
          existing = locks.putIfAbsent(index, created);
          return MoreObjects.firstNonNull(existing, created);
        }
    
        @Override
        public int size() {
          return size;
        }
      }
    
      /** A bit mask were all bits are set. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  5. schema/field_test.go

    		"id":         user.ID,
    		"created_at": user.CreatedAt,
    		"deleted_at": user.DeletedAt,
    		"age":        user.Age,
    		"birthday":   user.Birthday,
    		"active":     true,
    	}
    	checkField(t, userSchema, reflectValue, values)
    
    	// test setter
    	newValues := map[string]interface{}{
    		"name":       "valuer_and_setter_2",
    		"id":         2,
    		"created_at": time.Now(),
    		"deleted_at": time.Now(),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 19 09:02:53 GMT 2022
    - 12.7K bytes
    - Viewed (0)
  6. cmd/peer-s3-client.go

    	})
    
    	volInfo, err := headBucketRPC.Call(ctx, conn, mss)
    	if err != nil {
    		return BucketInfo{}, toStorageErr(err)
    	}
    
    	return BucketInfo{
    		Name:    volInfo.Name,
    		Created: volInfo.Created,
    	}, nil
    }
    
    // MakeBucket creates bucket across all peers
    func (sys *S3PeerSys) MakeBucket(ctx context.Context, bucket string, opts MakeBucketOptions) error {
    	g := errgroup.WithNErrs(len(sys.peerClients))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       verified or created.
     *   <li>If a new edge needs to be created, the outgoing edges of the acquired locks are traversed
     *       to check for a cycle that reaches the lock to be acquired. If no cycle is detected, a new
     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/bsbhv/BsScheduledJobBhv.java

        public int selectCount(CBCall<ScheduledJobCB> cbLambda) {
            return facadeSelectCount(createCB(cbLambda));
        }
    
        public OptionalEntity<ScheduledJob> selectEntity(CBCall<ScheduledJobCB> cbLambda) {
            return facadeSelectEntity(createCB(cbLambda));
        }
    
        protected OptionalEntity<ScheduledJob> facadeSelectEntity(ScheduledJobCB cb) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/bsbhv/BsThumbnailQueueBhv.java

        public int selectCount(CBCall<ThumbnailQueueCB> cbLambda) {
            return facadeSelectCount(createCB(cbLambda));
        }
    
        public OptionalEntity<ThumbnailQueue> selectEntity(CBCall<ThumbnailQueueCB> cbLambda) {
            return facadeSelectEntity(createCB(cbLambda));
        }
    
        protected OptionalEntity<ThumbnailQueue> facadeSelectEntity(ThumbnailQueueCB cb) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/config/bsbhv/BsWebAuthenticationBhv.java

        public int selectCount(CBCall<WebAuthenticationCB> cbLambda) {
            return facadeSelectCount(createCB(cbLambda));
        }
    
        public OptionalEntity<WebAuthentication> selectEntity(CBCall<WebAuthenticationCB> cbLambda) {
            return facadeSelectEntity(createCB(cbLambda));
        }
    
        protected OptionalEntity<WebAuthentication> facadeSelectEntity(WebAuthenticationCB cb) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top