Protocols

The following protocols are available globally.

  • Either NSPredicates or Strings can be used for a Query’s where and having clauses.

    Declaration

    Swift

    public protocol Predicate
  • Either NSExpressions or Strings can be used for a Query’s groupBy and returning clauses.

    Declaration

    Swift

    public protocol PredicateExpression
  • NSExpressions, NSSortDescriptors, or Strings can be used for a Query’s orderBy clause.

    Declaration

    Swift

    public protocol SortDescriptor
  • A protocol for an application-defined object that can resolve a conflict between two versions of a document along with the base or the common ancester document if available. Called when saving a document, when there is a a newer revision already in the database; and also when the replicator pulls a remote revision that conflicts with a locally-saved revision.

    See more

    Declaration

    Swift

    public protocol ConflictResolver