Select
public struct Select<O, T> : SelectClause, Hashable where O : DynamicObject, T : SelectResultTypeextension Select: CustomDebugStringConvertible, CoreStoreDebugStringConvertibleThe Select clause indicates the attribute / aggregate value to be queried. The generic type is a SelectResultType, and will be used as the return type for the query.
You can bind the return type by specializing the initializer:
let maximumAge = dataStack.queryValue(
    From<MyPersonEntity>(),
    Select<Int>(.maximum("age"))
)
or by casting the type of the return value:
let maximumAge: Int = dataStack.queryValue(
    From<MyPersonEntity>(),
    Select(.maximum("age"))
)
Valid return types depend on the query:
- for queryValue(...)methods:- all types that conform to QueryableAttributeTypeprotocol
 
- all types that conform to 
- for - queryAttributes(...)methods:- NSDictionary
 
Parameters
| 
                          sortDescriptors
                           | a series of  | 
- 
                  
                  Initializes a Selectclause with a list ofSelectTermsDeclarationSwift public init(_ selectTerm: SelectTerm<O>, _ selectTerms: SelectTerm<O>...)ParametersselectTermselectTermsa series of SelectTerms
- 
                  
                  Initializes a Selectclause with a list ofSelectTermsDeclarationSwift public init(_ selectTerms: [SelectTerm<O>])ParametersselectTermsa series of SelectTerms
- 
                  
                  DeclarationSwift public static func == <T1, T2>(lhs: Select<O, T1>, rhs: Select<O, T2>) -> Bool where T1 : SelectResultType, T2 : SelectResultType
- 
                  
                  DeclarationSwift public typealias ObjectType = O
- 
                  
                  DeclarationSwift public typealias ReturnType = T
- 
                  
                  DeclarationSwift public let selectTerms: [SelectTerm<O>]
- 
                  
                  DeclarationSwift public func hash(into hasher: inout Hasher)
- 
                  
                  DeclarationSwift public var debugDescription: String { get }
- 
                  
                  Initializes a Selectthat queries forNSManagedObjectIDresultsDeclarationSwift public init()
- 
                  
                  Initializes a Selectthat queries the value of an attribute pertained by a keyPathDeclarationSwift public init(_ keyPath: KeyPath<O, T>)ParameterskeyPaththe keyPath for the attribute 
- 
                  
                  Initializes a Selectthat queries the value of an attribute pertained by a keyPathDeclarationSwift public init(_ keyPath: KeyPath<O, ValueContainer<O>.Required<T>>)ParameterskeyPaththe keyPath for the attribute 
- 
                  
                  Initializes a Selectthat queries the value of an attribute pertained by a keyPathDeclarationSwift public init(_ keyPath: KeyPath<O, ValueContainer<O>.Optional<T>>)ParameterskeyPaththe keyPath for the attribute 
- 
                  
                  Initializes a Selectthat queries the value of an attribute pertained by a keyPathDeclarationSwift public init(_ keyPath: KeyPath<O, TransformableContainer<O>.Required<T>>)ParameterskeyPaththe keyPath for the attribute 
- 
                  
                  Initializes a Selectthat queries the value of an attribute pertained by a keyPathDeclarationSwift public init(_ keyPath: KeyPath<O, TransformableContainer<O>.Optional<T>>)ParameterskeyPaththe keyPath for the attribute 
 View on GitHub
            View on GitHub
           Select Structure Reference
      Select Structure Reference