Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 436 for Value (0.13 sec)

  1. clause/set.go

    	for idx, key := range keys {
    		assignments[idx] = Assignment{Column: Column{Name: key}, Value: values[key]}
    	}
    	return assignments
    }
    
    func AssignmentColumns(values []string) Set {
    	assignments := make([]Assignment, len(values))
    	for idx, value := range values {
    		assignments[idx] = Assignment{Column: Column{Name: value}, Value: Column{Table: "excluded", Name: value}}
    	}
    	return assignments
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Nov 29 03:02:44 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  2. clause/benchmarks_test.go

    			clause.From{},
    			clause.Where{Exprs: []clause.Expression{
    				clause.Eq{Column: clause.PrimaryColumn, Value: "1"},
    				clause.Gt{Column: "age", Value: 18},
    				clause.Or(clause.Neq{Column: "name", Value: "jinzhu"}),
    			}},
    			clause.Where{Exprs: []clause.Expression{
    				clause.Or(clause.Gt{Column: "score", Value: 100}, clause.Like{Column: "name", Value: "%linus%"}),
    			}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Oct 07 12:14:14 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  3. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 7.9K bytes
    - Viewed (2)
  4. utils/utils.go

    			return true
    		}
    	}
    	return false
    }
    
    func ToStringKey(values ...interface{}) string {
    	results := make([]string, len(values))
    
    	for idx, value := range values {
    		if valuer, ok := value.(driver.Valuer); ok {
    			value, _ = valuer.Value()
    		}
    
    		switch v := value.(type) {
    		case string:
    			results[idx] = v
    		case []byte:
    			results[idx] = string(v)
    		case uint:
    			results[idx] = strconv.FormatUint(uint64(v), 10)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  6. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5K bytes
    - Viewed (0)
  7. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Tue Sep 13 00:00:59 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  8. internal/amztime/iso8601_time.go

    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    		value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
    		// Pad necessary zeroes to full-fill the iso8601TimeFormat
    		return value + strings.Repeat("0", (len(iso8601TimeFormat)-1)-len(value)) + "Z"
    	}
    	return value
    }
    
    // ISO8601Parse parses ISO8601 date string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. soft_delete.go

    	"gorm.io/gorm/schema"
    )
    
    type DeletedAt sql.NullTime
    
    // Scan implements the Scanner interface.
    func (n *DeletedAt) Scan(value interface{}) error {
    	return (*sql.NullTime)(n).Scan(value)
    }
    
    // Value implements the driver Valuer interface.
    func (n DeletedAt) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Time, nil
    }
    
    func (n DeletedAt) MarshalJSON() ([]byte, error) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  10. callbacks/associations.go

    				distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				joins := reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.JoinTable.ModelType)), 0, 10)
    				objs := []reflect.Value{}
    
    				appendToJoins := func(obj reflect.Value, elem reflect.Value) {
    					joinValue := reflect.New(rel.JoinTable.ModelType)
    					for _, ref := range rel.References {
    						if ref.OwnPrimaryKey {
    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)
Back to top