Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 321 for Valuer (0.36 sec)

  1. scan.go

    	for idx, field := range fields {
    		if field != nil {
    			values[idx] = field.NewValuePool.Get()
    		} else if len(fields) == 1 {
    			if reflectValue.CanAddr() {
    				values[idx] = reflectValue.Addr().Interface()
    			} else {
    				values[idx] = reflectValue.Interface()
    			}
    		}
    	}
    
    	db.RowsAffected++
    	db.AddError(rows.Scan(values...))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/database/sql/convert.go

    		return nil
    	}
    
    	// First, see if the value itself knows how to convert
    	// itself to a driver type. For example, a NullString
    	// struct changing into a string or nil.
    	if vr, ok := nv.Value.(driver.Valuer); ok {
    		sv, err := callValuerValue(vr)
    		if err != nil {
    			return err
    		}
    		if !driver.IsValue(sv) {
    			return fmt.Errorf("non-subset type %T returned from Value", sv)
    		}
    		nv.Value = sv
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    func (n *NullInt64) Scan(value any) error {
    	if value == nil {
    		n.Int64, n.Valid = 0, false
    		return nil
    	}
    	n.Valid = true
    	return convertAssign(&n.Int64, value)
    }
    
    // Value implements the [driver.Valuer] interface.
    func (n NullInt64) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Int64, nil
    }
    
    // NullInt32 represents an int32 that may be null.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. schema/relationship.go

    	relation.Polymorphic = &Polymorphic{
    		Value: schema.Table,
    	}
    
    	var (
    		typeName = polymorphic + "Type"
    		typeId   = polymorphic + "ID"
    	)
    
    	if value, ok := field.TagSettings["POLYMORPHICTYPE"]; ok {
    		typeName = strings.TrimSpace(value)
    	}
    
    	if value, ok := field.TagSettings["POLYMORPHICID"]; ok {
    		typeId = strings.TrimSpace(value)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/helper/helpers_test.go

    					Values:   []string{"test-value2"},
    				},
    				{
    					Key:      "key3",
    					Operator: v1.NodeSelectorOpIn,
    					Values:   []string{"test-value3"},
    				},
    				{
    					Key:      "key6",
    					Operator: v1.NodeSelectorOpIn,
    					Values:   []string{"test-value6"},
    				},
    			},
    			terms: []v1.NodeSelectorTerm{
    				{
    					MatchExpressions: []v1.NodeSelectorRequirement{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    							"array": []interface{}{"value1", "value2", "value3", "value4"},
    						}}},
    
    				applyPatchOperation{
    					"make array valid",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"array": []interface{}{"value1", "value2", "value3", "4", "5", "6", "7", "8", "9", "10"},
    					}},
    				expectError{
    					applyPatchOperation{
    						"revert to original value",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  7. src/reflect/value.go

    func (v Value) CanAddr() bool {
    	return v.flag&flagAddr != 0
    }
    
    // CanSet reports whether the value of v can be changed.
    // A [Value] can be changed only if it is addressable and was not
    // obtained by the use of unexported struct fields.
    // If CanSet returns false, calling [Value.Set] or any type-specific
    // setter (e.g., [Value.SetBool], [Value.SetInt]) will panic.
    func (v Value) CanSet() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. src/log/slog/value.go

    // StringValue returns a new [Value] for a string.
    func StringValue(value string) Value {
    	return Value{num: uint64(len(value)), any: stringptr(unsafe.StringData(value))}
    }
    
    // IntValue returns a [Value] for an int.
    func IntValue(v int) Value {
    	return Int64Value(int64(v))
    }
    
    // Int64Value returns a [Value] for an int64.
    func Int64Value(v int64) Value {
    	return Value{num: uint64(v), any: KindInt64}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. manifests/charts/ztunnel/values.yaml

      meshConfig:
        defaultConfig:
          proxyMetadata: {}
    
      # This value defines:
      # 1. how many seconds kube waits for ztunnel pod to gracefully exit before forcibly terminating it (this value)
      # 2. how many seconds ztunnel waits to drain its own connections (this value - 1 sec)
      # Default K8S value is 30 seconds
      terminationGracePeriodSeconds: 30
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. manifests/charts/gateway/values.yaml

      # minimum number of available replicas to 1, you can update this value as follows:
      #
      # podDisruptionBudget:
      #   minAvailable: 1
      #
      # Or, to allow a maximum of 1 unavailable replica, you can set:
      #
      # podDisruptionBudget:
      #   maxUnavailable: 1
      #
      # You can also specify the `unhealthyPodEvictionPolicy` field, and the valid values are `IfHealthyBudget` and `AlwaysAllow`.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 16:51:35 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top