Functions

The following functions are available globally.

KeyPath where Root: NSManagedObject, Value: QueryableAttributeType & Equatable

  • Creates a Where clause by comparing if a property is equal to a value

    let person = dataStack.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 value

    let person = dataStack.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 property

    let dog = dataStack.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

KeyPath where Root: NSManagedObject, Value: Optional

  • Creates a Where clause by comparing if a property is equal to a value

    let person = dataStack.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 value

    let person = dataStack.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 property

    let dog = dataStack.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

KeyPath where Root: NSManagedObject, Value: QueryableAttributeType & Comparable

  • Creates a Where clause by comparing if a property is less than a value

    let person = dataStack.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 value

    let person = dataStack.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 value

    let person = dataStack.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 value

    let person = dataStack.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

KeyPath where Root: NSManagedObject, Value: Optional

  • Creates a Where clause by comparing if a property is less than a value

    let person = dataStack.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 value

    let person = dataStack.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 value

    let person = dataStack.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 value

    let person = dataStack.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

KeyPath where Root: NSManagedObject, Value: NSManagedObject

  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, D>, object: D) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, D>, object: D) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by checking if a sequence contains a value of a property

    let dog = dataStack.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 comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, D>, objectID: NSManagedObjectID) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, D>, object: O) -> Where<O> where O : DynamicObject, O : ObjectRepresentation, D : NSManagedObject, O.ObjectType : NSManagedObject
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, D>, objectID: NSManagedObjectID) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, D>, object: O) -> Where<O> where O : DynamicObject, O : ObjectRepresentation, D : NSManagedObject, O.ObjectType : NSManagedObject
  • Creates a Where clause by checking if a sequence contains a value of a property

    let dog = dataStack.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

KeyPath where Root: NSManagedObject, Value: Optional

  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, Optional<D>>, object: D?) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, Optional<D>>, object: O?) -> Where<O> where O : DynamicObject, O : ObjectRepresentation, D : NSManagedObject, O.ObjectType : NSManagedObject
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, Optional<D>>, object: D?) -> Where<O> where O : NSManagedObject, D : NSManagedObject
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, Optional<D>>, object: O?) -> Where<O> where O : DynamicObject, O : ObjectRepresentation, D : NSManagedObject, O.ObjectType : NSManagedObject
  • Creates a Where clause by checking if a sequence contains a value of a property

    let dog = dataStack.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 equal to a value

    let dog = dataStack.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 comparing if a property is not equal to a value

    let dog = dataStack.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 property

    let dog = dataStack.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: FieldContainer.Stored

  • Creates a Where clause by comparing if a property is equal to a value

    let person = dataStack.fetchOne(From<Person>().where(\.$nickname == "John"))
    

    Declaration

    Swift

    public func == <O, V>(keyPath: KeyPath<O, FieldContainer<O>.Stored<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : FieldStorableType
  • Creates a Where clause by comparing if a property is not equal to a value

    let person = dataStack.fetchOne(From<Person>().where(\.$nickname != "John"))
    

    Declaration

    Swift

    public func != <O, V>(keyPath: KeyPath<O, FieldContainer<O>.Stored<V>>, value: V) -> Where<O> where O : CoreStoreObject, V : FieldStorableType
  • Creates a Where clause by checking if a sequence contains the value of a property

    let dog = dataStack.fetchOne(From<Dog>().where(["Pluto", "Snoopy", "Scooby"] ~= \.nickname))
    

    Declaration

    Swift

    public func ~= <O, V, S>(sequence: S, keyPath: KeyPath<O, FieldContainer<O>.Stored<V>>) -> Where<O> where O : CoreStoreObject, V : FieldStorableType, V == S.Element, S : Sequence

KeyPath where Root: CoreStoreObject, Value: FieldContainer.Stored

KeyPath where Root: CoreStoreObject, Value: FieldContainer.Relationship

  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.$master == john))
    

    Declaration

    Swift

    public func == <O, D>(keyPath: KeyPath<O, FieldContainer<O>.Relationship<D>>, object: D.DestinationObjectType?) -> Where<O> where O : CoreStoreObject, D : FieldRelationshipToOneType
  • Creates a Where clause by comparing if a property is equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master == john))
    

    Declaration

    Swift

    public func == <O, D, R>(keyPath: KeyPath<O, FieldContainer<O>.Relationship<D>>, object: R?) -> Where<O> where O : CoreStoreObject, D : FieldRelationshipToOneType, R : ObjectRepresentation, D.DestinationObjectType == R.ObjectType
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.$master != john))
    

    Declaration

    Swift

    public func != <O, D>(keyPath: KeyPath<O, FieldContainer<O>.Relationship<D>>, object: D.DestinationObjectType?) -> Where<O> where O : CoreStoreObject, D : FieldRelationshipToOneType
  • Creates a Where clause by comparing if a property is not equal to a value

    let dog = dataStack.fetchOne(From<Dog>().where(\.master != john))
    

    Declaration

    Swift

    public func != <O, D, R>(keyPath: KeyPath<O, FieldContainer<O>.Relationship<D>>, object: R?) -> Where<O> where O : CoreStoreObject, D : FieldRelationshipToOneType, R : ObjectRepresentation, D.DestinationObjectType == R.ObjectType
  • Creates a Where clause by checking if a sequence contains a value of a property

    let dog = dataStack.fetchOne(From<Dog>().where([john, bob, joe] ~= \.$master))
    

    Declaration

    Swift

    public func ~= <O, D, S>(sequence: S, keyPath: KeyPath<O, FieldContainer<O>.Relationship<D>>) -> Where<O> where O : CoreStoreObject, D : FieldRelationshipToOneType, S : Sequence, D.DestinationObjectType == S.Element

KeyPath where Root: CoreStoreObject, Value: ValueContainer.Required

KeyPath where Root: CoreStoreObject, Value: ValueContainer.Optional

KeyPath where Root: CoreStoreObject, Value: ValueContainer.Required

KeyPath where Root: CoreStoreObject, Value: ValueContainer.Optional

KeyPath where Root: CoreStoreObject, Value: RelationshipContainer.ToOne

~ where D: NSManagedObject

~ where D: CoreStoreObject

Where.Expression where V: QueryableAttributeType

Where.Expression where V: QueryableAttributeType & Comparable

Where.Expression where V: Optional

Where.Expression where V: Optional