Protocols

The following protocols are available globally.

  • Indicates that a class can be used as a Query object.

    See more

    Declaration

    Swift

    public protocol Queryable: class
  • Used to query the property list of the conforming class. PrediKit uses this protocol to determine if the property you are specifying in the creation of a predicate actually exists in the conforming class. If it doesn’t, PrediKit will print a warning to the console.

    All NSObjects conform to this protocol through a public extension declared in PrediKit.

    See more

    Declaration

    Swift

    public protocol Reflectable: class
  • Used to give a query object the capability to perform SQL-like IN queries.

    See more

    Declaration

    Swift

    public protocol Matchable: Queryable
  • Used to give a query object the capability to perform nil comparison queries.

    See more

    Declaration

    Swift

    public protocol NilComparable: Queryable