Functions

The following functions are available globally.

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

    let 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 value

    let 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 property

    let 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 value

    let 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 value

    let 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 property

    let 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 value

    let 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 value

    let 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 value

    let 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 value

    let 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 value

    let 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 value

    let 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 value

    let 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 value

    let 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 equal to a value

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

    let dog = CoreStore.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 = CoreStore.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 checking if a sequence contains a value of a property

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

    let dog = CoreStore.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 = CoreStore.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 checking if a sequence contains a value of a property

    let 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 equal to a value

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

    let 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 property

    let 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