Protocols

The following protocols are available globally.

  • Replication target endpoint.

    Declaration

    Swift

    public protocol Endpoint
  • 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
  • A query data source. used for specifiying the data source for your query.

    Declaration

    Swift

    public protocol DataSourceProtocol
  • A query data source with the aliasing function.

    See more

    Declaration

    Swift

    public protocol DataSourceAs: DataSourceProtocol
  • Ordering represents a single ordering component in the query ORDER BY clause.

    Declaration

    Swift

    public protocol OrderingProtocol
  • SortOrder allows to specify the ordering direction which is ascending or descending order. The default ordering is the ascending order.

    See more

    Declaration

    Swift

    public protocol SortOrder: OrderingProtocol
  • Join component representing a JOIN clause in the query statement.

    Declaration

    Swift

    public protocol JoinProtocol
  • Join ON clause used for specifying join conditions.

    See more

    Declaration

    Swift

    public protocol JoinOnProtocol: JoinProtocol
  • Collation defines how strings are compared and is used when creating a COLLATE expression. The COLLATE expression can be used in the WHERE clause when comparing two strings or in the ORDER BY clause when specifying how the order of the query results.

    Declaration

    Swift

    public protocol CollationProtocol
  • SelectResult represents a signle return value of the query statement.

    Declaration

    Swift

    public protocol SelectResultProtocol
  • SelectResult with the aliasing function. The alias name can be used as the key for accessing the result value from the query Result object.

    See more

    Declaration

    Swift

    public protocol SelectResultAs: SelectResultProtocol
  • SelectResult with the from function that you can specify the data source alias name.

    See more

    Declaration

    Swift

    public protocol SelectResultFrom: SelectResultProtocol