Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,277 for by (0.28 sec)

  1. clause/group_by.go

    package clause
    
    // GroupBy group by clause
    type GroupBy struct {
    	Columns []Column
    	Having  []Expression
    }
    
    // Name from clause name
    func (groupBy GroupBy) Name() string {
    	return "GROUP BY"
    }
    
    // Build build group by clause
    func (groupBy GroupBy) Build(builder Builder) {
    	for idx, column := range groupBy.Columns {
    		if idx > 0 {
    			builder.WriteByte(',')
    		}
    
    		builder.WriteQuoted(column)
    	}
    
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Mar 30 10:28:09 GMT 2021
    - 1K bytes
    - Viewed (0)
  2. clause/order_by.go

    	Column  Column
    	Desc    bool
    	Reorder bool
    }
    
    type OrderBy struct {
    	Columns    []OrderByColumn
    	Expression Expression
    }
    
    // Name where clause name
    func (orderBy OrderBy) Name() string {
    	return "ORDER BY"
    }
    
    // Build build where clause
    func (orderBy OrderBy) Build(builder Builder) {
    	if orderBy.Expression != nil {
    		orderBy.Expression.Build(builder)
    	} else {
    		for idx, column := range orderBy.Columns {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Nov 03 02:30:05 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  3. clause/order_by_test.go

    			}},
    			"SELECT * FROM `users` ORDER BY `users`.`id` DESC", nil,
    		},
    		{
    			[]clause.Interface{
    				clause.Select{}, clause.From{}, clause.OrderBy{
    					Columns: []clause.OrderByColumn{{Column: clause.PrimaryColumn, Desc: true}},
    				}, clause.OrderBy{
    					Columns: []clause.OrderByColumn{{Column: clause.Column{Name: "name"}}},
    				},
    			},
    			"SELECT * FROM `users` ORDER BY `users`.`id` DESC,`name`", nil,
    		},
    		{
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  4. clause/group_by_test.go

    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.GroupBy{
    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}},
    			"SELECT * FROM `users` GROUP BY `role` HAVING `role` = ?",
    			[]interface{}{"admin"},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.GroupBy{
    				Columns: []clause.Column{{Name: "role"}},
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  5. tests/group_by_test.go

    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby" || active != true || total != 40 {
    		t.Errorf("group by two columns, name %v, age %v, active: %v", name, total, active)
    	}
    
    	if DB.Dialector.Name() == "mysql" {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/arm.go

    	return armJump[word]
    }
    
    // IsARMCMP reports whether the op (as defined by an arm.A* constant) is
    // one of the comparison instructions that require special handling.
    func IsARMCMP(op obj.As) bool {
    	switch op {
    	case arm.ACMN, arm.ACMP, arm.ATEQ, arm.ATST:
    		return true
    	}
    	return false
    }
    
    // IsARMSTREX reports whether the op (as defined by an arm.A* constant) is
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/buildid/doc.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Buildid displays or updates the build ID stored in a Go package or binary.
    
    Usage:
    
    	go tool buildid [-w] file
    
    By default, buildid prints the build ID found in the named file.
    If the -w option is given, buildid rewrites the build ID found in
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 558 bytes
    - Viewed (0)
  8. src/cmd/asm/internal/arch/loong64.go

    // IsLoong64CMP reports whether the op (as defined by an loong64.A* constant) is
    // one of the CMP instructions that require special handling.
    func IsLoong64CMP(op obj.As) bool {
    	switch op {
    	case loong64.ACMPEQF, loong64.ACMPEQD, loong64.ACMPGEF, loong64.ACMPGED,
    		loong64.ACMPGTF, loong64.ACMPGTD:
    		return true
    	}
    	return false
    }
    
    // IsLoong64MUL reports whether the op (as defined by an loong64.A* constant) is
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 06 13:49:53 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. internal/s3select/sql/aggregation.go

    	case aggFnAvg:
    		if e.aggregate.runningCount == 0 {
    			// No rows were seen by AVG.
    			return FromNull(), nil
    		}
    		err := e.aggregate.runningSum.arithOp(opDivide, FromInt(e.aggregate.runningCount))
    		return e.aggregate.runningSum, err
    
    	case aggFnMin:
    		if !e.aggregate.seen {
    			// No rows were seen by MIN
    			return FromNull(), nil
    		}
    		return e.aggregate.runningMin, nil
    
    	case aggFnMax:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  10. internal/config/batch/batch.go

    	config.KV{
    		Key:   ReplicationWorkersWait,
    		Value: "0ms", // No wait by default between each replication attempts.
    	},
    	config.KV{
    		Key:   KeyRotationWorkersWait,
    		Value: "0ms", // No wait by default between each key rotation attempts.
    	},
    	config.KV{
    		Key:   ExpirationWorkersWait,
    		Value: "0ms", // No wait by default between each expiration attempts.
    	},
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Dec 06 09:09:22 GMT 2023
    - 4.7K bytes
    - Viewed (0)
Back to top