GroupBy
public struct GroupBy<D> : GroupByClause, QueryClause, Hashable where D : DynamicObject
The GroupBy clause specifies that the result of a query be grouped accoording to the specified key path.
-
Initializes a
GroupByclause with an empty list of key path stringsDeclaration
Swift
public init() -
Initializes a
GroupByclause with a list of key path stringsDeclaration
Swift
public init(_ keyPath: KeyPathString, _ keyPaths: KeyPathString...)Parameters
keyPatha key path string to group results with
keyPathsa series of key path strings to group results with
-
Initializes a
GroupByclause with a list of key path stringsDeclaration
Swift
public init(_ keyPaths: [KeyPathString])Parameters
keyPathsa list of key path strings to group results with
-
Declaration
Swift
public typealias ObjectType = D -
Declaration
Swift
public let keyPaths: [KeyPathString]
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var debugDescription: String { get }
-
Initializes a
GroupByclause with a key pathDeclaration
Swift
public init<T>(_ keyPath: KeyPath<D, T>)Parameters
keyPatha key path to group results with
-
Initializes a
GroupByclause with a key pathDeclaration
Swift
public init<T>(_ keyPath: KeyPath<D, ValueContainer<D>.Required<T>>) where T : ImportableAttributeTypeParameters
keyPatha key path to group results with
-
Initializes a
GroupByclause with a key pathDeclaration
Swift
public init<T>(_ keyPath: KeyPath<D, ValueContainer<D>.Optional<T>>) where T : ImportableAttributeTypeParameters
keyPatha key path to group results with
-
Initializes a
GroupByclause with a key pathDeclaration
Swift
public init<T>(_ keyPath: KeyPath<D, TransformableContainer<D>.Required<T>>) where T : NSCoding, T : NSCopyingParameters
keyPatha key path to group results with
-
Initializes a
GroupByclause with a key pathDeclaration
Swift
public init<T>(_ keyPath: KeyPath<D, TransformableContainer<D>.Optional<T>>) where T : NSCoding, T : NSCopyingParameters
keyPatha key path to group results with
View on GitHub
GroupBy Structure Reference