Classes

The following classes are available globally.

  • Having represents a HAVING clause of the query statement used for filtering the aggregated values from the the GROUP BY clause.

    See more

    Declaration

    Swift

    public final class Having: Query, OrderByRouter, LimitRouter
  • A GroupBy represents the GROUP BY clause to group the query result. The GROUP BY clause is normally used with aggregate functions (AVG, COUNT, MAX, MIN, SUM) to aggregate the group of the values.

    See more

    Declaration

    Swift

    public class GroupBy: Query, HavingRouter, OrderByRouter, LimitRouter
  • A Couchbase Lite database.

    See more

    Declaration

    Swift

    public final class Database
  • A query data source. used for specifiying the data source for your query. The current data source supported is the database.

    See more

    Declaration

    Swift

    public class DataSource
  • A database data source. You could also create an alias data source by calling the as(alias) method with an alias name.

    See more

    Declaration

    Swift

    public class DatabaseSource: DataSource
  • The Satisfies class represents the SATISFIES clause object in a quantified operator (ANY/ANY AND EVERY/EVERY IN SATISFIES ). The SATISFIES clause is used for specifying an expression that will be used to evaluate each item in the array.

    See more

    Declaration

    Swift

    public class ArrayExpressionSatisfies
  • MutableFragment provides read and write access to data value. MutableFragment also provides subscript access by either key or index to the nested values which are wrapped by MutableFragment objects.

    See more

    Declaration

    Swift

    public class MutableFragment: Fragment, MutableDictionaryFragment, MutableArrayFragment
  • Function provies query functions.

    See more

    Declaration

    Swift

    public class Function
  • An Ordering represents a single ordering component in the query ORDER BY clause.

    See more

    Declaration

    Swift

    public class Ordering
  • 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 final class SortOrder: Ordering
  • A replicator for replicating document changes between a local database and a target database. The replicator can be bidirectional or either push or pull. The replicator can also be one-short or continuous. The replicator runs asynchronously, so observe the status property to be notified of progress.

    See more

    Declaration

    Swift

    public final class Replicator
  • DocumentFragment provides access to a document object. DocumentFragment also provides subscript access by either key or index to the data values of the document which are wrapped by Fragment objects.

    See more

    Declaration

    Swift

    public class DocumentFragment: DictionaryFragment
  • Result represents a single row in the query result. The projecting result value can be accessed either by using a zero based index or by a key corresponding to the SelectResult objects given when constructing the Query object.

    A key used for accessing the projecting result value could be one of the followings:

    • The alias name of the SelectResult object.
    • The last component of the keypath or property name of the property expression used when creating the SelectResult object.
    • The provision key in $1, $2, …$N format for the SelectResult that doesn’t have an alias name specified or is not a property expression such as an aggregate function expression (e.g. count(), avg(), min(), max(), sum() and etc). The number suffix after the ‘$’ character is a running number starting from one.
    See more

    Declaration

    Swift

    public class Result : ArrayProtocol, DictionaryProtocol
  • A Join component representing a single JOIN clause in the query statement.

    See more

    Declaration

    Swift

    public class Join
  • On

    On component used for specifying join conditions.

    See more

    Declaration

    Swift

    public final class On : Join
  • The In class represents the IN clause object in a quantified operator (ANY/ANY AND EVERY/EVERY IN SATISFIES ). The IN clause is used for specifying an array object or an expression evaluated as an array object, each item of which will be evaluated against the satisfies expression.

    See more

    Declaration

    Swift

    public class ArrayExpressionIn
  • Fragment provides readonly access to data value. Fragment also provides subscript access by either key or index to the nested values which are wrapped by Fragment objects.

    See more

    Declaration

    Swift

    public class Fragment: FragmentProtocol, ArrayFragment, DictionaryFragment
  • A database query. A Query instance can be constructed by calling one of the select class methods.

    See more

    Declaration

    Swift

    public class Query
  • A Joins component represents a collection of the joins clauses of the query statement.

    See more

    Declaration

    Swift

    public class Joins: Query, WhereRouter, OrderByRouter, LimitRouter
  • ResultSet is a result returned from a query.

    See more

    Declaration

    Swift

    public class ResultSet : Sequence, IteratorProtocol
  • A Limit component represents the LIMIT clause of the query statement.

    Declaration

    Swift

    public class Limit: Query
  • DictionaryObject provides readonly access to dictionary data.

    See more

    Declaration

    Swift

    public class DictionaryObject: DictionaryProtocol, Equatable, Hashable
  • Index represents an index which could be a value index for regular queries or full-text index for full-text queries (using the match operator).

    See more

    Declaration

    Swift

    public class Index
  • A full-text search index for full-text search query with the match operator.

    See more

    Declaration

    Swift

    public class FullTextIndex: Index
  • Full-text search index item.

    See more

    Declaration

    Swift

    public class FullTextIndexItem
  • ArrayObject provides readonly access to array data.

    See more

    Declaration

    Swift

    public class ArrayObject: ArrayProtocol, Equatable, Hashable
  • An Expression represents an expression used for constructing a query statement.

    See more

    Declaration

    Swift

    public class Expression
  • Where class represents the WHERE clause of the query statement.

    See more

    Declaration

    Swift

    public final class Where: Query, GroupByRouter, OrderByRouter, LimitRouter
  • A From component representing a FROM clause for specifying the data source of the query.

    See more

    Declaration

    Swift

    public final class From: Query, JoinRouter, WhereRouter, GroupByRouter, OrderByRouter, LimitRouter
  • A Select component represents the returning properties in each query result row.

    See more

    Declaration

    Swift

    public final class Select: Query, FromRouter
  • An OrderBy represents an ORDER BY clause of the query statement.

    See more

    Declaration

    Swift

    public class OrderBy: Query, LimitRouter
  • 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. CouchbaseLite provides two types of the Collation, ASCII and Unicode. Without specifying the COLLATE expression Couchbase Lite will use the ASCII with case sensitive collation by default.

    See more

    Declaration

    Swift

    public class Collation
  • Couchbase Lite document. The Document is immutable.

    See more

    Declaration

    Swift

    public class Document : DictionaryProtocol, Equatable, Hashable
  • SelectResult represents a signle return value of the query statement.

    See more

    Declaration

    Swift

    public class SelectResult
  • Meta is a factory class for creating the expressions that refer to the metadata properties of the document.

    See more

    Declaration

    Swift

    public class Meta