Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for by (0.22 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 14 09:35:11 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 14 09:35:11 GMT 2024
    - Last Modified: Tue Nov 03 02:30:05 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  3. 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 14 09:35:11 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  4. 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 14 09:35:11 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  5. 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 14 09:35:11 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  6. tests/test_response_by_alias.py

    @app.get("/by-alias/dict", response_model=Model)
    def by_alias_dict():
        return {"alias": "Foo"}
    
    
    @app.get("/by-alias/model", response_model=Model)
    def by_alias_model():
        return Model(alias="Foo")
    
    
    @app.get("/by-alias/list", response_model=List[Model])
    def by_alias_list():
        return [{"alias": "Foo"}, {"alias": "Bar"}]
    
    
    @app.get("/no-alias/dict", response_model=ModelNoAlias)
    def no_alias_dict():
        return {"name": "Foo"}
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    * 📝 Update `project-generation.md`. PR [#11326](https://github.com/tiangolo/fastapi/pull/11326) by [@alejsdev](https://github.com/alejsdev).
    * 📝 Update External Links. PR [#11327](https://github.com/tiangolo/fastapi/pull/11327) by [@alejsdev](https://github.com/alejsdev).
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Apr 06 15:44:16 GMT 2024
    - 382.5K bytes
    - Viewed (1)
  8. licenses/gopkg.in/ini.v1/LICENSE

    "License" shall mean the terms and conditions for use, reproduction, and
    distribution as defined by Sections 1 through 9 of this document.
    
    "Licensor" shall mean the copyright owner or entity authorized by the copyright
    owner that is granting the License.
    
    "Legal Entity" shall mean the union of the acting entity and all other entities
    that control, are controlled by, or are under common control with that entity.
    Plain Text
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Wed Jan 12 20:05:04 GMT 2022
    - 10K bytes
    - Viewed (0)
  9. licenses/k8s.io/apiserver/LICENSE

          and distribution as defined by Sections 1 through 9 of this document.
    
          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.
    
          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
    Plain Text
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Wed May 18 01:54:41 GMT 2022
    - 11.1K bytes
    - Viewed (0)
  10. licenses/k8s.io/cli-runtime/LICENSE

          and distribution as defined by Sections 1 through 9 of this document.
    
          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.
    
          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
    Plain Text
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Sat Oct 26 02:47:39 GMT 2019
    - 11.1K bytes
    - Viewed (0)
Back to top