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
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet owner = CoreStore.fetchOne(From<Pet>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, V>(lhs: KeyPath<D, O>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.SingleTarget, V> where D : NSManagedObject, O : NSManagedObject, V : AllowedObjectiveCKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet owner = CoreStore.fetchOne(From<Pet>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, V>(lhs: KeyPath<D, O?>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.SingleTarget, V> where D : NSManagedObject, O : NSManagedObject, V : AllowedObjectiveCKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet happyPets = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets).count() > 1))
Declaration
Swift
public func ~ <D, O, V>(lhs: KeyPath<D, O>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.CollectionTarget, V> where D : NSManagedObject, O : NSManagedObject, V : AllowedObjectiveCCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet happyPets = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets).count() > 1))
Declaration
Swift
public func ~ <D, O, V>(lhs: KeyPath<D, O?>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.CollectionTarget, V> where D : NSManagedObject, O : NSManagedObject, V : AllowedObjectiveCCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet johnsSonInLaw = CoreStore.fetchOne(From<Person>().where((\.spouse ~ \.father ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, T, V>(lhs: Where<D>.Expression<T, O>, rhs: KeyPath<O, V>) -> Where<D>.Expression<T, V> where D : NSManagedObject, O : NSManagedObject, T : WhereExpressionTrait, V : AllowedObjectiveCKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet johnsSonInLaw = CoreStore.fetchOne(From<Person>().where((\.spouse ~ \.father ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, T, V>(lhs: Where<D>.Expression<T, O?>, rhs: KeyPath<O, V>) -> Where<D>.Expression<T, V> where D : NSManagedObject, O : NSManagedObject, T : WhereExpressionTrait, V : AllowedObjectiveCKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet spouseHasSiblings = CoreStore.fetchOne(From<Person>().where((\.spouse ~ \.father ~ \.children).count() > 0))
Declaration
Swift
public func ~ <D, O, T, V>(lhs: Where<D>.Expression<T, O>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.CollectionTarget, V> where D : NSManagedObject, O : NSManagedObject, T : WhereExpressionTrait, V : AllowedObjectiveCCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet spouseHasSiblings = CoreStore.fetchOne(From<Person>().where((\.spouse ~ \.father ~ \.children).count() > 0))
Declaration
Swift
public func ~ <D, O, T, V>(lhs: Where<D>.Expression<T, O?>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.CollectionTarget, V> where D : NSManagedObject, O : NSManagedObject, T : WhereExpressionTrait, V : AllowedObjectiveCCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet spousesWithBadNamingSense = CoreStore.fetchAll(From<Person>().where((\.spouse ~ \.pets ~ \.name).any() == "Spot"))
Declaration
Swift
public func ~ <D, O, T, C, V>(lhs: Where<D>.Expression<T, C>, rhs: KeyPath<O, V>) -> Where<D>.Expression<Where<D>.CollectionTarget, V> where D : NSManagedObject, O : NSManagedObject, T : WhereExpressionTrait, C : AllowedObjectiveCCollectionKeyPathValue, V : AllowedObjectiveCKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet owner = CoreStore.fetchOne(From<Pet>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, K>(lhs: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, rhs: KeyPath<O, K>) -> Where<D>.Expression<Where<D>.SingleTarget, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, K : AllowedCoreStoreObjectKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet owner = CoreStore.fetchOne(From<Pet>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, T, K>(lhs: Where<D>.Expression<T, O>, rhs: KeyPath<O, K>) -> Where<D>.Expression<T, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, T : WhereExpressionTrait, K : AllowedCoreStoreObjectKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet owner = CoreStore.fetchOne(From<Pet>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func ~ <D, O, T, K>(lhs: Where<D>.Expression<T, O?>, rhs: KeyPath<O, K>) -> Where<D>.Expression<T, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, T : WhereExpressionTrait, K : AllowedCoreStoreObjectKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet happyPets = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets).count() > 1))
Declaration
Swift
public func ~ <D, O, K>(lhs: KeyPath<D, RelationshipContainer<D>.ToOne<O>>, rhs: KeyPath<O, K>) -> Where<D>.Expression<Where<D>.CollectionTarget, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, K : AllowedCoreStoreObjectCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet happyPets = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets).count() > 1))
Declaration
Swift
public func ~ <D, O, T, K>(lhs: Where<D>.Expression<T, O>, rhs: KeyPath<O, K>) -> Where<D>.Expression<Where<D>.CollectionTarget, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, T : WhereExpressionTrait, K : AllowedCoreStoreObjectCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet happyPets = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets).count() > 1))
Declaration
Swift
public func ~ <D, O, T, K>(lhs: Where<D>.Expression<T, O?>, rhs: KeyPath<O, K>) -> Where<D>.Expression<Where<D>.CollectionTarget, K.ValueType> where D : CoreStoreObject, O : CoreStoreObject, O == K.ObjectType, T : WhereExpressionTrait, K : AllowedCoreStoreObjectCollectionKeyPathValue
-
Connects multiple
DynamicKeyPath
s to create a type-safe chain usable in query/fetch expressionslet spousesWithBadNamingSense = CoreStore.fetchAll(From<Pet>().where((\.master ~ \.pets ~ \.name).any() == "Spot"))
Declaration
Swift
public func ~ <D, O, T, KC, KV>(lhs: Where<D>.Expression<T, KC>, rhs: KeyPath<O, KV>) -> Where<D>.Expression<Where<D>.CollectionTarget, KV.ValueType> where D : CoreStoreObject, D == KC.ObjectType, O : CoreStoreObject, O == KV.ObjectType, T : WhereExpressionTrait, KC : AllowedCoreStoreObjectCollectionKeyPathValue, KV : AllowedCoreStoreObjectKeyPathValue
-
Creates a
Where
clause by comparing if an expression is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func == <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if an expression is not equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) != "John"))
Declaration
Swift
public func != <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by checking if a sequence contains a valuelet dog = CoreStore.fetchOne(From<Dog>().where(["John", "Joe"] ~= (\.master ~ \.name))
Declaration
Swift
public func ~= <D, T, V, S>(sequence: S, expression: Where<D>.Expression<T, V>) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V == S.Element, S : Sequence
-
Creates a
Where
clause by comparing if an expression is less than a valuelet lonelyDog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.pets).count() < 2))
Declaration
Swift
public func < <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is less than or equal to a valuelet lonelyDog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.pets).count() <= 1)
Declaration
Swift
public func <= <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is greater than a valuelet happyDog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.pets).count() > 1)
Declaration
Swift
public func > <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is greater than or equal to a valuelet happyDog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.pets).count() >= 2)
Declaration
Swift
public func >= <D, T, V>(lhs: Where<D>.Expression<T, V>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func == <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if an expression is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) == "John"))
Declaration
Swift
public func == <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V?) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if an expression is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) != "John"))
Declaration
Swift
public func != <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by comparing if an expression is equal to a valuelet dog = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.name) != "John"))
Declaration
Swift
public func != <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V?) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType
-
Creates a
Where
clause by checking if a sequence contains a valuelet dog = CoreStore.fetchOne(From<Dog>().where(["John", "Joe"] ~= (\.master ~ \.name))
Declaration
Swift
public func ~= <D, T, V, S>(sequence: S, expression: Where<D>.Expression<T, V?>) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V == S.Element, S : Sequence
-
Creates a
Where
clause by comparing if an expression is less than a valuelet childsPet = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.age) < 10))
Declaration
Swift
public func < <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is less than or equal to a valuelet childsPet = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.age) <= 10))
Declaration
Swift
public func <= <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V?) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is greater than a valuelet teensPet = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.age) > 10))
Declaration
Swift
public func > <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable
-
Creates a
Where
clause by comparing if an expression is greater than or equal to a valuelet teensPet = CoreStore.fetchOne(From<Dog>().where((\.master ~ \.age) >= 10))
Declaration
Swift
public func >= <D, T, V>(lhs: Where<D>.Expression<T, V?>, rhs: V?) -> Where<D> where D : DynamicObject, T : WhereExpressionTrait, V : QueryableAttributeType, V : Comparable