- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 634 for groupby (0.1 sec)
-
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 Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 30 10:28:09 UTC 2021 - 1K bytes - Viewed (0) -
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 Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 3.3K bytes - Viewed (0) -
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 Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.1K bytes - Viewed (0) -
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 }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jun 10 06:17:20 UTC 2024 - 3.3K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
val scenarioObj = it as JSONObject val testId = scenarioObj["testId"] as String val groups = (scenarioObj["groups"] as JSONArray).map { val groupObj = it as JSONObject val testProject = groupObj["testProject"] as String val coverage = (groupObj["coverage"] as JSONObject).map { entry ->
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Feb 19 11:22:56 UTC 2024 - 15.3K bytes - Viewed (0) -
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 Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Oct 07 12:14:14 UTC 2022 - 1.9K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt
@VisibleForTesting @JvmStatic fun selectVersionsFrom(minimumSupported: String, allVersions: List<String>): List<String> { val versionsByMinor = allVersions .groupBy { it.take(3) } // e.g. 1.9 .toSortedMap() val latests = buildList { versionsByMinor.entries.forEachIndexed { idx, entry -> // Earliest stable of the minor
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jul 23 18:27:26 UTC 2024 - 5.2K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt
private fun DocumentBuilderFactory.fetchLatests(minimumSupported: String, mavenMetadataUrl: String): List<String> { var latests = fetchVersionsFromMavenMetadata(mavenMetadataUrl) .groupBy { it.take(3) } .map { (_, versions) -> versions.first() } latests = (latests + minimumSupported).sorted() latests = latests.subList(latests.indexOf(minimumSupported) + 1, latests.size)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 02 09:17:07 UTC 2023 - 5.6K bytes - Viewed (0) -
.teamcity/src/test/kotlin/CIConfigIntegrationTests.kt
val functionalTestsWithSplit: Map<String, List<BaseGradleBuildType>> = functionalTests.filter { largeSubProjectRegex.containsMatchIn(it.name) }.groupBy { it.getSubProjectSplitName().substringBefore('_') } functionalTestsWithSplit.forEach { assertAllSplitsArePresent(it.key, it.value) assertCorrectParameters(it.key, it.value)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Jul 18 07:02:47 UTC 2024 - 13.4K bytes - Viewed (0) -
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.IsValidDBNameChar) tx.Statement.AddClause(clause.GroupBy{
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 14.8K bytes - Viewed (0)