Functions
The following functions are available globally.
-
Creates a
Where
clause by comparing if a property is equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname == "John"))
Declaration
Swift
public func == <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname != "John"))
Declaration
Swift
public func != <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType
-
Creates a
Where
clause by checking if a sequence contains the value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where(["Pluto", "Snoopy", "Scooby"] ~= \.nickname))
Declaration
Swift
public func ~= <O, V, S>(sequence: S, keyPath: KeyPath<O, V>) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V == S.Element, S : Sequence
-
Creates a
Where
clause by comparing if a property is equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname == "John"))
Declaration
Swift
public func == <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname != "John"))
Declaration
Swift
public func != <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType
-
Creates a
Where
clause by checking if a sequence contains the value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where(["Pluto", "Snoopy", "Scooby"] ~= \.nickname))
Declaration
Swift
public func ~= <O, V, S>(sequence: S, keyPath: KeyPath<O, Optional<V>>) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V == S.Element, S : Sequence
-
Creates a
Where
clause by comparing if a property is less than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age < 20))
Declaration
Swift
public func < <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age > 20))
Declaration
Swift
public func > <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is less than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age <= 20))
Declaration
Swift
public func <= <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age >= 20))
Declaration
Swift
public func >= <O, V>(keyPath: KeyPath<O, V>, value: V) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is less than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age < 20))
Declaration
Swift
public func < <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age > 20))
Declaration
Swift
public func > <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is less than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age <= 20))
Declaration
Swift
public func <= <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age >= 20))
Declaration
Swift
public func >= <O, V>(keyPath: KeyPath<O, Optional<V>>, value: V?) -> Where<O> where O : NSManagedObject, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by checking if a sequence contains a value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where([john, bob, joe] ~= \.master))
Declaration
Swift
public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, D>) -> Where<O> where O : NSManagedObject, D : NSManagedObject, D == S.Element, S : Sequence
-
Creates a
Where
clause by checking if a sequence contains a value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where([john, bob, joe] ~= \.master))
Declaration
Swift
public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, D>) -> Where<O> where O : NSManagedObject, D : NSManagedObject, S : Sequence, S.Element == NSManagedObjectID
-
Creates a
Where
clause by checking if a sequence contains a value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where([john, bob, joe] ~= \.master))
Declaration
Swift
public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, Optional<D>>) -> Where<O> where O : NSManagedObject, D : NSManagedObject, D == S.Element, S : Sequence
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where(\.master != john))
Declaration
Swift
public func != <O, D>(keyPath: KeyPath<O, Optional<D>>, objectID: NSManagedObjectID) -> Where<O> where O : NSManagedObject, D : NSManagedObject
-
Creates a
Where
clause by checking if a sequence contains a value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where([john, bob, joe] ~= \.master))
Declaration
Swift
public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, Optional<D>>) -> Where<O> where O : NSManagedObject, D : NSManagedObject, S : Sequence, S.Element == NSManagedObjectID
KeyPath where Root: CoreStoreObject, Value: ValueContainer<Root>.Required<QueryableAttributeType & Equatable>
-
Creates a
Where
clause by comparing if a property is equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname == "John"))
Declaration
Swift
public func == <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname != "John"))
Declaration
Swift
public func != <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by checking if a sequence contains the value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where(["Pluto", "Snoopy", "Scooby"] ~= \.nickname))
Declaration
Swift
public func ~= <O, V, S>(sequence: S, keyPath: KeyPath<O, ValueContainer<O>.Required<V>>) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V == S.Element, S : Sequence
KeyPath where Root: CoreStoreObject, Value: ValueContainer<Root>.Optional<QueryableAttributeType & Equatable>
-
Creates a
Where
clause by comparing if a property is equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname == "John"))
Declaration
Swift
public func == <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.nickname != "John"))
Declaration
Swift
public func != <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by checking if a sequence contains the value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where(["Pluto", "Snoopy", "Scooby"] ~= \.nickname))
Declaration
Swift
public func ~= <O, V, S>(sequence: S, keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V == S.Element, S : Sequence
KeyPath where Root: CoreStoreObject, Value: ValueContainer<Root>.Required<QueryableAttributeType & Comparable>
-
Creates a
Where
clause by comparing if a property is less than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age < 20))
Declaration
Swift
public func < <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age > 20))
Declaration
Swift
public func > <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is less than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age <= 20))
Declaration
Swift
public func <= <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if a property is greater than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age >= 20))
Declaration
Swift
public func >= <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Required<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType, V : Comparable
KeyPath where Root: CoreStoreObject, Value: ValueContainer<Root>.Optional<QueryableAttributeType & Comparable>
-
Creates a
Where
clause by comparing if a property is less than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age < 20))
Declaration
Swift
public func < <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is greater than a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age > 20))
Declaration
Swift
public func > <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is less than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age <= 20))
Declaration
Swift
public func <= <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is greater than or equal to a valuelet person = CoreStore.fetchOne(From<Person>().where(\.age >= 20))
Declaration
Swift
public func >= <O, V>(keyPath: KeyPath<O, ValueContainer<O>.Optional<V>>, value: V?) -> Where<O> where O : CoreStoreObject, V : ImportableAttributeType
-
Creates a
Where
clause by comparing if a property is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where(\.master == john))
Declaration
Swift
public func == <O, D>(keyPath: KeyPath<O, RelationshipContainer<O>.ToOne<D>>, object: D) -> Where<O> where O : CoreStoreObject, D : CoreStoreObject
-
Creates a
Where
clause by comparing if a property is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where(\.master == john))
Declaration
Swift
public func == <O, D>(keyPath: KeyPath<O, RelationshipContainer<O>.ToOne<D>>, object: D?) -> Where<O> where O : CoreStoreObject, D : CoreStoreObject
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where(\.master != john))
Declaration
Swift
public func != <O, D>(keyPath: KeyPath<O, RelationshipContainer<O>.ToOne<D>>, object: D) -> Where<O> where O : CoreStoreObject, D : CoreStoreObject
-
Creates a
Where
clause by comparing if a property is not equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where(\.master != john))
Declaration
Swift
public func != <O, D>(keyPath: KeyPath<O, RelationshipContainer<O>.ToOne<D>>, object: D?) -> Where<O> where O : CoreStoreObject, D : CoreStoreObject
-
Creates a
Where
clause by checking if a sequence contains a value of a propertylet dog = CoreStore.fetchOne(From<Dog>().where([john, bob, joe] ~= \.master))
Declaration
Swift
public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, RelationshipContainer<O>.ToOne<D>>) -> Where<O> where O : CoreStoreObject, D : CoreStoreObject, D == S.Element, S : Sequence