Instance Method (Default implementation)grdb 7.3.0GRDB
groupWhenConnected(_:)
Association.swift:250func groupWhenConnected(_ expressions: @escaping (Database) throws -> [any SQLExpressible]) -> Self
func groupWhenConnected(_ expressions: @escaping (Database) throws -> [any SQLExpressible]) -> Self
s4GRDB11AssociationPAAE18groupWhenConnectedyxSayAA14SQLExpressible_pGAA8DatabaseCYbKcF
What are these?6I510
import GRDB
A toolkit for SQLite databases, with a focus on application development
protocol Association : DerivableRequest, Sendable
A type that defines a connection between two tables.
final class Database
An SQLite connection.
protocol SQLExpressible
A type that can be used as an SQL expression.
func groupWhenConnected(_ expressions: @escaping (Database) throws -> [any SQLExpressible]) -> Self
Returns an aggregate request grouped on the given SQL expressions.
var databaseTableName: String { get }
func _including(all association: _SQLAssociation) -> Self
func _including(optional association: _SQLAssociation) -> Self
func _including(required association: _SQLAssociation) -> Self
func _joining(optional association: _SQLAssociation) -> Self
func _joining(required association: _SQLAssociation) -> Self
func aliased(_ alias: TableAlias) -> Self
func annotatedWhenConnected(with selection: @escaping (Database) throws -> [any SQLSelectable]) -> Self
func distinct() -> Self
func filterWhenConnected(_ predicate: @escaping (Database) throws -> any SQLExpressible) -> Self
func forKey(_ codingKey: some CodingKey) -> Self
Returns an association with the given key.
func havingWhenConnected(_ predicate: @escaping (Database) throws -> any SQLExpressible) -> Self
func orderWhenConnected(_ orderings: @escaping (Database) throws -> [any SQLOrderingTerm]) -> Self
func reversed() -> Self
func selectWhenConnected(_ selection: @escaping (Database) throws -> [any SQLSelectable]) -> Self
func unordered() -> Self
func with<RowDecoder>(_ cte: CommonTableExpression<RowDecoder>) -> Self
func withStableOrder() -> Self