mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-18 23:44:14 +01:00
WIP: utilities for clauses
This commit is contained in:
@@ -40,21 +40,32 @@ public final class CSGroupBy: NSObject, CSQueryClause, CoreStoreObjectiveCType {
|
||||
/**
|
||||
The list of key path strings to group results with
|
||||
*/
|
||||
@objc
|
||||
public var keyPaths: [KeyPath] {
|
||||
|
||||
return self.bridgeToSwift.keyPaths
|
||||
}
|
||||
|
||||
/**
|
||||
Initializes a `CSGroupBy` clause with a key path string
|
||||
|
||||
- parameter keyPath: a key path string to group results with
|
||||
*/
|
||||
@objc
|
||||
public convenience init(keyPath: KeyPath) {
|
||||
|
||||
self.init(GroupBy(keyPath))
|
||||
}
|
||||
|
||||
/**
|
||||
Initializes a `CSGroupBy` clause with a list of key path strings
|
||||
|
||||
- parameter keyPaths: a list of key path strings to group results with
|
||||
- returns: a `CSGroupBy` clause with a list of key path strings
|
||||
*/
|
||||
@objc
|
||||
public static func keyPaths(keyPaths: [KeyPath]) -> CSGroupBy {
|
||||
public convenience init(keyPaths: [KeyPath]) {
|
||||
|
||||
return self.init(GroupBy(keyPaths))
|
||||
self.init(GroupBy(keyPaths))
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user