Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for havin (0.14 sec)

  1. chainable_api.go

    	})
    	return
    }
    
    // Having specify HAVING conditions for GROUP BY
    //
    //	// Select the sum age of users with name jinzhu
    //	db.Model(&User{}).Select("name, sum(age) as total").Group("name").Having("name = ?", "jinzhu").Find(&result)
    func (db *DB) Having(query interface{}, args ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.AddClause(clause.GroupBy{
    		Having: tx.Statement.BuildCondition(query, args...),
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  2. istioctl/pkg/multixds/gather.go

    // By this way, even if istioctl cannot access a specific `istiod` instance directly,
    // `istioctl` can access the debug endpoint.
    // If `all` is true, `queryDebugSynczViaAgents` iterates all the pod having a proxy
    // except the pods of which status information is already queried.
    func queryDebugSynczViaAgents(all bool, dr *discovery.DiscoveryRequest, istioNamespace string, kubeClient kube.CLIClient,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    	err = c.validateIDPSettings(ctx, sites)
    	if err != nil {
    		return madmin.ReplicateAddStatus{}, err
    	}
    
    	// For this `add` API, either all clusters must be empty or the local
    	// cluster must be the only one having some buckets.
    	if localHasBuckets && nonLocalPeerWithBuckets != "" {
    		return madmin.ReplicateAddStatus{}, errSRInvalidRequest(errors.New("only one cluster may have data when configuring site replication"))
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  4. callbacks.go

    				} else if curIdx < sortedIdx {
    					return fmt.Errorf("conflicting callback %s with before %s", c.name, c.after)
    				}
    			} else if idx := getRIndex(names, c.after); idx != -1 {
    				// if after callback exists but haven't sorted
    				// set after callback's before callback to current callback
    				after := cs[idx]
    
    				if after.before == "" {
    					after.before = c.name
    				}
    
    				if err := sortCallback(after); err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  5. cmd/mrf.go

    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/pkg/v2/wildcard"
    )
    
    const (
    	mrfOpsQueueSize = 100000
    )
    
    // partialOperation is a successful upload/delete of an object
    // but not written in all disks (having quorum)
    type partialOperation struct {
    	bucket              string
    	object              string
    	versionID           string
    	versions            []byte
    	setIndex, poolIndex int
    	queued              time.Time
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/podcgroupns.go

    }
    
    func (p *PodNetnsProcFinder) FindNetnsForPods(pods map[types.UID]*corev1.Pod) (PodToNetns, error) {
    	/*
    		for each process, find its netns inode,
    		if we already seen the inode, skip it
    		if we haven't seen the inode, check the process cgroup and see if we
    		can extract a pod uid from it.
    		if we can, open the netns, and save a map of uid->netns-fd
    	*/
    
    	podUIDNetns := make(PodToNetns)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  7. cmd/bucket-targets.go

    			}
    			sys.updateBandwidthLimit(bucket, tgt.Arn, tgt.BandwidthLimit)
    		}
    
    		if !tgts.Empty() {
    			sys.targetsMap[bucket] = tgts.Targets
    		}
    	}
    }
    
    // create minio-go clients for buckets having remote targets
    func (sys *BucketTargetSys) set(bucket BucketInfo, meta BucketMetadata) {
    	cfg := meta.bucketTargetConfig
    	if cfg == nil || cfg.Empty() {
    		return
    	}
    	sys.Lock()
    	defer sys.Unlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    		return 0
    	}
    	r, ok := p.registerReference(name)
    	if !ok {
    		return 0
    	}
    	reg := r - p.arch.Register["R0"]
    	if reg < 0 {
    		// Could happen for an architecture having other registers prefixed by R
    		p.errorf("expected g or R0 through R15; found %s", name)
    		return 0
    	}
    	return uint16(reg)
    }
    
    // Note: There are two changes in the expression handling here
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    	c.mustUpload(ctx, svcClient, bucket)
    
    	// 3. Check S3 access for download
    	c.mustDownload(ctx, svcClient, bucket)
    }
    
    // In this test, the parent users gets their permissions from a group, rather
    // than having a policy set directly on them.
    func (s *TestSuiteIAM) TestLDAPSTSServiceAccountsWithGroups(c *check) {
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
    	defer cancel()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  10. tests/sql_builder_test.go

    	}
    }
    
    func TestRowsWithGroup(t *testing.T) {
    	users := []User{
    		{Name: "having_user_1", Age: 1},
    		{Name: "having_user_2", Age: 10},
    		{Name: "having_user_1", Age: 20},
    		{Name: "having_user_1", Age: 30},
    	}
    
    	DB.Create(&users)
    
    	rows, err := DB.Select("name, count(*) as total").Table("users").Group("name").Having("name IN ?", []string{users[0].Name, users[1].Name}).Rows()
    	if err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top