Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 854 for groupby (0.04 sec)

  1. clause/group_by.go

    // 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)
    	}
    
    	if len(groupBy.Having) > 0 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Mar 30 10:28:09 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. tests/group_by_test.go

    		t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total)
    	}
    
    	if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("users.name").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby" || total != 60 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/extension/ReleasedVersionsDetails.kt

                .groupBy { "${it.major}.${it.minor}" }
                .map { (_, v) -> v.maxOrNull()!!.format() }
    
            // Limit to first and last release of each major version
            mainTestedVersions = testedVersions.map { VersionNumber.parse(it.gradleVersion().version) }
                .groupBy { it.major }
                .map { (_, v) -> listOf(v.maxOrNull()!!.format()) }.flatten()
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Sep 10 06:04:09 UTC 2025
    - 3.3K 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"}},
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                val testId = scenarioObj["testId"] as String
                val groups =
                    (scenarioObj["groups"] as List<Map<String, Any>>).map { groupObj ->
                        val testProject = groupObj["testProject"] as String
                        val coverage =
                            (groupObj["coverage"] as Map<String, List<String>>)
                                .map { (key, value) ->
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                    "Minimum supported '$minimumSupported' was not found in available versions: $allVersions"
                }
                val versionsByMinor = allVersions
                    .groupBy { it.take(3) } // e.g. 1.9
                    .toSortedMap()
                val latests = buildList {
                    versionsByMinor.entries.forEachIndexed { idx, entry ->
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Oct 29 08:29:55 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. clause/benchmarks_test.go

    			}},
    			clause.Where{Exprs: []clause.Expression{
    				clause.Or(clause.Gt{Column: "score", Value: 100}, clause.Like{Column: "name", Value: "%linus%"}),
    			}},
    			clause.GroupBy{Columns: []clause.Column{{Name: "role"}}, Having: []clause.Expression{clause.Eq{"role", "admin"}}},
    			clause.Limit{Limit: &limit10, Offset: 20},
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt

                val allMinorLatests = allVersions.map { version ->
                    VersionNumber.parse(version)
                }.sorted().groupBy { version ->
                    VersionNumber.version(version.major, version.minor)
                }.map { (_, versions) ->
                    versions.last()
                }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Oct 24 09:10:29 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                    functionalTests
                        .filter {
                            largeSubProjectRegex.containsMatchIn(
                                it.name,
                            )
                        }.groupBy { it.getSubProjectSplitName().substringBefore('_') }
                functionalTestsWithSplit.forEach {
                    assertAllSplitsArePresent(it.key, it.value)
                    assertCorrectParameters(it.key, it.value)
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 16 01:27:05 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  10. chainable_api.go

    	return
    }
    
    // Group specify the group method on the find
    //
    //	// Select the sum age of users with given names
    //	db.Model(&User{}).Select("name, sum(age) as total").Group("name").Find(&results)
    func (db *DB) Group(name string) (tx *DB) {
    	tx = db.getInstance()
    
    	fields := strings.FieldsFunc(name, utils.IsInvalidDBNameChar)
    	tx.Statement.AddClause(clause.GroupBy{
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Sep 19 01:49:06 UTC 2025
    - 14.8K bytes
    - Viewed (0)
Back to top