Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for saved (0.14 sec)

  1. tests/transaction_test.go

    	tx := DB.Begin()
    
    	user := *GetUser("transaction-save-point", Config{})
    	tx.Create(&user)
    
    	if err := tx.First(&User{}, "name = ?", user.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.SavePoint("save_point1").Error; err != nil {
    		t.Fatalf("Failed to save point, got error %v", err)
    	}
    
    	user1 := *GetUser("transaction-save-point-1", Config{})
    	tx.Create(&user1)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Jun 10 13:05:19 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. callbacks/associations.go

    		tx = tx.Omit(omits...)
    	}
    
    	return db.AddError(tx.Create(values).Error)
    }
    
    // check association values has been saved
    // if values kind is Struct, check it has been saved
    // if values kind is Slice/Array, check all items have been saved
    var visitMapStoreKey = "gorm:saved_association_map"
    
    func checkAssociationsSaved(db *gorm.DB, values reflect.Value) bool {
    	if visit, ok := db.Get(visitMapStoreKey); ok {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      cat > $BATS_TEST_TMPDIR/ignore_these_deps <<EOF
    benchmark
    _test$
    _test.py$
    _test_cpu$
    _test_cpu.py$
    _test_gpu$
    _test_gpu.py$
    _test_lib$
    //tensorflow/cc/saved_model:saved_model_test_files
    //tensorflow/cc/saved_model:saved_model_half_plus_two
    //tensorflow:no_tensorflow_py_deps
    //tensorflow/tools/pip_package:win_pip_package_marker
    //tensorflow/core:image_testdata
    //tensorflow/core/lib/lmdb:lmdb_testdata
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  4. ci/official/utilities/code_check_full.bats

      cat > $BATS_TEST_TMPDIR/ignore_these_deps <<EOF
    benchmark
    _test$
    _test.py$
    _test_cpu$
    _test_cpu.py$
    _test_gpu$
    _test_gpu.py$
    _test_lib$
    //tensorflow/cc/saved_model:saved_model_test_files
    //tensorflow/cc/saved_model:saved_model_half_plus_two
    //tensorflow:no_tensorflow_py_deps
    //tensorflow/tools/pip_package:win_pip_package_marker
    //tensorflow/core:image_testdata
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. tests/associations_test.go

    			{ProductId: "full-save-association-product1"},
    		},
    		AmountOff:  10,
    		PercentOff: 0.0,
    	}
    
    	err := DB.
    		Session(&gorm.Session{FullSaveAssociations: true}).
    		Create(coupon).Error
    	if err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    		t.Errorf("Failed to query saved coupon")
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/upsert_test.go

    		}
    	}
    }
    
    func TestUpsertWithSave(t *testing.T) {
    	langs := []Language{
    		{Code: "upsert-save-1", Name: "Upsert-save-1"},
    		{Code: "upsert-save-2", Name: "Upsert-save-2"},
    	}
    
    	if err := DB.Save(&langs).Error; err != nil {
    		t.Errorf("Failed to create, got error %v", err)
    	}
    
    	for _, lang := range langs {
    		var result Language
    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)
  7. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * The maximum number of permits that can be saved (when the RateLimiter is unused) is defined in
       * terms of time, in this sense: if a RateLimiter is 2qps, and this time is specified as 10
       * seconds, we can save up to 2 * 10 = 20 permits.
       */
      static final class SmoothBursty extends SmoothRateLimiter {
        /** The work (permits) of how many seconds can be saved up if this RateLimiter is unused? */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  8. tests/hooks_test.go

    	}
    
    	p4 := Product{Code: "after_save_error", Price: 100}
    	DB.Save(&p4)
    	if err := DB.First(&Product{}, "code = ?", "after_save_error").Error; err == nil {
    		t.Fatalf("Record should be reverted if get an error in after save callback")
    	}
    
    	p5 := Product{Code: "after_delete_error", Price: 100}
    	DB.Save(&p5)
    	if err := DB.First(&Product{}, "code = ?", "after_delete_error").Error; err != nil {
    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)
  9. cmd/erasure-server-pool-rebalance.go

    				z.rebalMu.Lock()
    				z.rebalMeta.PoolStats[poolIdx].Info.Status = status
    				z.rebalMeta.PoolStats[poolIdx].Info.EndTime = now
    				z.rebalMu.Unlock()
    
    			case <-timer.C:
    				traceMsg = fmt.Sprintf("saved at %s", time.Now())
    			}
    
    			stopFn := globalRebalanceMetrics.log(rebalanceMetricSaveMetadata, poolIdx, traceMsg)
    			err := z.saveRebalanceStats(GlobalContext, poolIdx, rebalSaveStats)
    			stopFn(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. tensorflow/c/BUILD

            ":kernels",
        ],
    )
    
    tf_cuda_cc_test(
        name = "c_api_test",
        size = "medium",
        srcs = ["c_api_test.cc"],
        data = [
            ":test_op1.so",
            "//tensorflow/cc/saved_model:saved_model_half_plus_two",
        ],
        linkopts = select({
            "//tensorflow:macos": ["-headerpad_max_install_names"],
            "//conditions:default": [],
        }),
        tags = [
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 30.3K bytes
    - Viewed (0)
Back to top