Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 437 for value (0.14 sec)

  1. internal/s3select/sql/value.go

    func FromBool(b bool) *Value {
    	return &Value{value: b}
    }
    
    // FromTimestamp creates a Value from a timestamp
    func FromTimestamp(t time.Time) *Value {
    	return &Value{value: t}
    }
    
    // FromNull creates a Value with Null value
    func FromNull() *Value {
    	return &Value{value: nil}
    }
    
    // FromMissing creates a Value with Missing value
    func FromMissing() *Value {
    	return &Value{value: Missing{}}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    // valueBuilders contains one constructor for each value type.
    // Values should match if type is the same.
    var valueBuilders = []func() *Value{
    	FromNull,
    	func() *Value {
    		return FromBool(true)
    	},
    	func() *Value {
    		return FromBytes([]byte("byte contents"))
    	},
    	func() *Value {
    		return FromFloat(math.Pi)
    	},
    	func() *Value {
    		return FromInt(0x1337)
    	},
    	func() *Value {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. internal/s3select/sql/value_contrib.go

    Harshavardhana <******@****.***> 1622584780 -0700
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1K bytes
    - Viewed (0)
  4. internal/s3select/json/testdata/10.json

    [
     {
    	 "key_1": "value",
    	 "key_2": "value"
     }
    ]
    [
    	{
    		"key_1": "value2",
    		"key_2": "value3"
    	}
    Json
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 100 bytes
    - Viewed (0)
  5. internal/cachevalue/cache.go

    	// but will fetch a new value in the background.
    	NoWait bool
    }
    
    // Cache contains a synchronized value that is considered valid
    // for a specific amount of time.
    // An Update function must be set to provide an updated value when needed.
    type Cache[T any] struct {
    	// updateFn must return an updated value.
    	// If an error is returned the cached value is not set.
    	// Only one caller will call this function at any time, others will be blocking.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  6. internal/config/api/api.go

    			Value: "5m",
    		},
    		config.KV{
    			Key:           apiDisableODirect,
    			Value:         "",
    			HiddenIfEmpty: true,
    		},
    		config.KV{
    			Key:   apiODirect,
    			Value: config.EnableOn,
    		},
    		config.KV{
    			Key:   apiGzipObjects,
    			Value: config.EnableOff,
    		},
    		config.KV{
    			Key:   apiRootAccess,
    			Value: config.EnableOn,
    		},
    		config.KV{
    			Key:   apiSyncEvents,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  7. internal/config/identity/ldap/config.go

    var (
    	DefaultKVS = config.KVS{
    		config.KV{
    			Key:   config.Enable,
    			Value: "",
    		},
    		config.KV{
    			Key:   ServerAddr,
    			Value: "",
    		},
    		config.KV{
    			Key:   SRVRecordName,
    			Value: "",
    		},
    		config.KV{
    			Key:   UserDNSearchBaseDN,
    			Value: "",
    		},
    		config.KV{
    			Key:   UserDNSearchFilter,
    			Value: "",
    		},
    		config.KV{
    			Key:   GroupSearchFilter,
    			Value: "",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  8. internal/config/heal/heal.go

    // DefaultKVS - default KV config for heal settings
    var DefaultKVS = config.KVS{
    	config.KV{
    		Key:   Bitrot,
    		Value: config.EnableOff,
    	},
    	config.KV{
    		Key:   Sleep,
    		Value: "250ms",
    	},
    	config.KV{
    		Key:   IOCount,
    		Value: "100",
    	},
    	config.KV{
    		Key:   DriveWorkers,
    		Value: "",
    	},
    }
    
    const minimumBitrotCycleInMonths = 1
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. internal/s3select/csv/record.go

    	if index >= int64(len(r.csvRecord)) {
    		// No value found for column 'name', hence return null
    		// value
    		return sql.FromNull(), nil
    	}
    
    	return sql.FromBytes([]byte(r.csvRecord[index])), nil
    }
    
    // Set - sets the value for a column name.
    func (r *Record) Set(name string, value *sql.Value) (sql.Record, error) {
    	r.columnNames = append(r.columnNames, name)
    	r.csvRecord = append(r.csvRecord, value.CSVString())
    	return r, nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  10. internal/config/compress/compress.go

    var (
    	DefaultKVS = config.KVS{
    		config.KV{
    			Key:   config.Enable,
    			Value: config.EnableOff,
    		},
    		config.KV{
    			Key:   AllowEncrypted,
    			Value: config.EnableOff,
    		},
    		config.KV{
    			Key:   Extensions,
    			Value: DefaultExtensions,
    		},
    		config.KV{
    			Key:   MimeTypes,
    			Value: DefaultMimeTypes,
    		},
    	}
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5K bytes
    - Viewed (0)
Back to top