Where
public struct Where<D> : WhereClauseType, FetchClause, QueryClause, DeleteClause, Hashable where D : DynamicObject
The Where clause specifies the conditions for a fetch or a query.
-
Combines two
Wherepredicates together usingANDoperatorDeclaration
Swift
public static func && (left: Where<D>, right: Where<D>) -> Where<D> -
Combines two
Wherepredicates together usingORoperatorDeclaration
Swift
public static func || (left: Where<D>, right: Where<D>) -> Where<D> -
Inverts the predicate of a
Whereclause usingNOToperatorDeclaration
Swift
public prefix static func ! (clause: Where<D>) -> Where<D> -
Combines two
Wherepredicates together usingANDoperator.Declaration
Swift
public static func &&? (left: Where<D>, right: Where<D>?) -> Where<D>Return Value
leftifrightisnil, otherwise equivalent to(left && right) -
Combines two
Wherepredicates together usingANDoperator.Declaration
Swift
public static func &&? (left: Where<D>?, right: Where<D>) -> Where<D>Return Value
rightifleftisnil, otherwise equivalent to(left && right) -
Combines two
Wherepredicates together usingORoperator.Declaration
Swift
public static func ||? (left: Where<D>, right: Where<D>?) -> Where<D>Return Value
leftifrightisnil, otherwise equivalent to(left || right) -
Combines two
Wherepredicates together usingORoperator.Declaration
Swift
public static func ||? (left: Where<D>?, right: Where<D>) -> Where<D>Return Value
rightifleftisnil, otherwise equivalent to(left || right) -
Initializes a
Whereclause with a predicate that always evaluates totrueDeclaration
Swift
public init() -
Initializes a
Whereclause with a predicate that always evaluates to the specified boolean valueDeclaration
Swift
public init(_ value: Bool)Parameters
valuethe boolean value for the predicate
-
Initializes a
Whereclause with a predicate using the specified string format and argumentsDeclaration
Swift
public init(_ format: String, _ args: Any...)Parameters
formatthe format string for the predicate
argsthe arguments for
format -
Initializes a
Whereclause with a predicate using the specified string format and argumentsDeclaration
Swift
public init(_ format: String, argumentArray: [Any]?)Parameters
formatthe format string for the predicate
argumentArraythe arguments for
format -
Initializes a
Whereclause that compares equality tonilDeclaration
Swift
public init(_ keyPath: KeyPathString, isEqualTo null: Void?)Parameters
keyPaththe keyPath to compare with
nullthe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<U>(_ keyPath: KeyPathString, isEqualTo value: U?) where U : QueryableAttributeTypeParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<D>(_ keyPath: KeyPathString, isEqualTo object: D?) where D : DynamicObjectParameters
keyPaththe keyPath to compare with
objectthe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init(_ keyPath: KeyPathString, isEqualTo objectID: NSManagedObjectID)Parameters
keyPaththe keyPath to compare with
objectIDthe arguments for the
==operator -
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<S>(_ keyPath: KeyPathString, isMemberOf list: S) where S : Sequence, S.Element : QueryableAttributeTypeParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<S>(_ keyPath: KeyPathString, isMemberOf list: S) where S : Sequence, S.Element : DynamicObjectParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<S>(_ keyPath: KeyPathString, isMemberOf list: S) where S : Sequence, S.Element : NSManagedObjectIDParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Declaration
Swift
public let predicate: NSPredicate -
Declaration
Swift
public init(_ predicate: NSPredicate)
-
Declaration
Swift
public typealias ObjectType = D
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var debugDescription: String { get }
-
Initializes a
Whereclause that compares equality tonilDeclaration
Swift
public init<V>(_ keyPath: KeyPath<D, V>, isEqualTo null: Void?) where V : QueryableAttributeTypeParameters
keyPaththe keyPath to compare with
nullthe arguments for the
==operator -
Initializes a
Whereclause that compares equality tonilDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, O>, isEqualTo null: Void?) where O : DynamicObjectParameters
keyPaththe keyPath to compare with
nullthe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<V>(_ keyPath: KeyPath<D, V>, isEqualTo value: V?) where V : QueryableAttributeTypeParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, O>, isEqualTo value: O?) where O : DynamicObjectParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, O>, isEqualTo objectID: NSManagedObjectID) where O : DynamicObjectParameters
keyPaththe keyPath to compare with
objectIDthe arguments for the
==operator -
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<V, S>(_ keyPath: KeyPath<D, V>, isMemberOf list: S) where V : QueryableAttributeType, V == S.Element, S : SequenceParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<O, S>(_ keyPath: KeyPath<D, O>, isMemberOf list: S) where O : DynamicObject, O == S.Element, S : SequenceParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<O, S>(_ keyPath: KeyPath<D, O>, isMemberOf list: S) where O : DynamicObject, S : Sequence, S.Element : NSManagedObjectIDParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares equality tonilDeclaration
Swift
public init<V>(_ keyPath: KeyPath<D, ValueContainer<D>.Optional<V>>, isEqualTo null: Void?) where V : ImportableAttributeTypeParameters
keyPaththe keyPath to compare with
nullthe arguments for the
==operator -
Initializes a
Whereclause that compares equality tonilDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, isEqualTo null: Void?) where O : CoreStoreObjectParameters
keyPaththe keyPath to compare with
nullthe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<V>(_ keyPath: KeyPath<D, ValueContainer<D>.Required<V>>, isEqualTo value: V?) where V : ImportableAttributeTypeParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<V>(_ keyPath: KeyPath<D, ValueContainer<D>.Optional<V>>, isEqualTo value: V?) where V : ImportableAttributeTypeParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, isEqualTo value: O?) where O : CoreStoreObjectParameters
keyPaththe keyPath to compare with
valuethe arguments for the
==operator -
Initializes a
Whereclause that compares equalityDeclaration
Swift
public init<O>(_ keyPath: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, isEqualTo objectID: NSManagedObjectID) where O : CoreStoreObjectParameters
keyPaththe keyPath to compare with
objectIDthe arguments for the
==operator -
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<V, S>(_ keyPath: KeyPath<D, ValueContainer<D>.Required<V>>, isMemberOf list: S) where V : ImportableAttributeType, V == S.Element, S : SequenceParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<V, S>(_ keyPath: KeyPath<D, ValueContainer<D>.Optional<V>>, isMemberOf list: S) where V : ImportableAttributeType, V == S.Element, S : SequenceParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<O, S>(_ keyPath: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, isMemberOf list: S) where O : CoreStoreObject, O == S.Element, S : SequenceParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause that compares membershipDeclaration
Swift
public init<O, S>(_ keyPath: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, isMemberOf list: S) where O : CoreStoreObject, S : Sequence, S.Element : NSManagedObjectIDParameters
keyPaththe keyPath to compare with
listthe sequence to check membership of
-
Initializes a
Whereclause from a closureDeclaration
Swift
public init(_ condition: (D) -> Where<D>)Parameters
conditionclosure that returns the
Whereclause
View on GitHub
Where Structure Reference