Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 235 for set (0.18 sec)

  1. clause/set.go

    package clause
    
    import "sort"
    
    type Set []Assignment
    
    type Assignment struct {
    	Column Column
    	Value  interface{}
    }
    
    func (set Set) Name() string {
    	return "SET"
    }
    
    func (set Set) Build(builder Builder) {
    	if len(set) > 0 {
    		for idx, assignment := range set {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    			builder.WriteQuoted(assignment.Column)
    			builder.WriteByte('=')
    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/set_test.go

    				clause.Update{},
    				clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}),
    			},
    			"UPDATE `users` SET `users`.`id`=?",
    			[]interface{}{1},
    		},
    		{
    			[]clause.Interface{
    				clause.Update{},
    				clause.Set([]clause.Assignment{{clause.PrimaryColumn, 1}}),
    				clause.Set([]clause.Assignment{{clause.Column{Name: "name"}, "jinzhu"}}),
    			},
    			"UPDATE `users` SET `name`=?",
    			[]interface{}{"jinzhu"},
    		},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  3. cmd/metacache-set_gen_test.go

    Klaus Post <******@****.***> 1708383286 -0800
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. cmd/metrics-v3-cluster-erasure-set.go

    	result, _ := c.esetHealthResult.Get()
    
    	m.Set(erasureSetOverallWriteQuorum, float64(result.WriteQuorum))
    	m.Set(erasureSetOverallHealth, b2f(result.Healthy))
    
    	for _, h := range result.ESHealth {
    		poolLV := strconv.Itoa(h.PoolID)
    		setLV := strconv.Itoa(h.SetID)
    		m.Set(erasureSetReadQuorum, float64(h.ReadQuorum),
    			poolIDL, poolLV, setIDL, setLV)
    		m.Set(erasureSetWriteQuorum, float64(h.WriteQuorum),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. cmd/metrics-v3-system-cpu.go

    	if cpuMetrics.LoadStat != nil {
    		m.Set(sysCPULoad, cpuMetrics.LoadStat.Load1)
    		perc := cpuMetrics.LoadStat.Load1 * 100 / float64(cpuMetrics.CPUCount)
    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    	tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    	cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    	m.Set(sysCPUUser, cpuUserVal)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/noncurrentversion_test.go

    				NewerNoncurrentVersions: 2,
    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays: -1,
    				set:            true,
    			},
    			err: errXMLNotWellFormed,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: -2,
    				set:                     true,
    			},
    			err: errXMLNotWellFormed,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  7. internal/cachevalue/cache.go

    type Opts struct {
    	// When set to true, return the last cached value
    	// even if updating the value errors out.
    	// Returns the last good value AND the error.
    	ReturnLastGood bool
    
    	// If CacheError is set, errors will be cached as well
    	// and not continuously try to update.
    	// Should not be combined with ReturnLastGood.
    	CacheError bool
    
    	// If NoWait is set, Get() will return the last good value,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. cmd/server-rlimit.go

    	// Set the Go runtime max threads threshold to 90% of kernel setting.
    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    	var maxLimit uint64
    
    	// Set open files limit to maximum.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/transition.go

    	StorageClass string         `xml:"StorageClass,omitempty"`
    
    	set bool
    }
    
    // IsEnabled returns if transition is enabled.
    func (t Transition) IsEnabled() bool {
    	return t.set
    }
    
    // MarshalXML encodes transition field into an XML form.
    func (t Transition) MarshalXML(enc *xml.Encoder, start xml.StartElement) error {
    	if !t.set {
    		return nil
    	}
    	type transitionWrapper Transition
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  10. cmd/net.go

    func mustGetLocalIP4() (ipList set.StringSet) {
    	ipList = set.NewStringSet()
    	for _, ip := range mustGetLocalIPs() {
    		if ip.To4() != nil {
    			ipList.Add(ip.String())
    		}
    	}
    	return
    }
    
    // mustGetLocalIP6 returns IPv6 addresses of localhost.  It panics on error.
    func mustGetLocalIP6() (ipList set.StringSet) {
    	ipList = set.NewStringSet()
    	for _, ip := range mustGetLocalIPs() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top