Classes
The following classes are available globally.
-
A compiled database query, similar to a N1QL or SQL query.
See moreDeclaration
Swift
public class PredicateQuery
-
A query data source. used for specifiying the data source for your query. The current data source supported is the database.
See moreDeclaration
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 moreDeclaration
Swift
public class DatabaseSource: DataSource
-
A Parameters object used for setting values to the query parameters defined in the query.
See moreDeclaration
Swift
public class Parameters
-
The Satisfies class represents the SATISFIES clause object in a quantified operator (ANY/ANY AND EVERY/EVERY
See moreIN SATISFIES ). The SATISFIES clause is used for specifying an expression that will be used to evaluate each item in the array. Declaration
Swift
public class Satisfies
-
Fragment provides read and write 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 moreDeclaration
Swift
public class Fragment: ReadOnlyFragment, DictionaryFragment, ArrayFragment
-
A row of data generated by a Query.
See moreDeclaration
Swift
public class QueryRow
-
Function represents a function expression.
See moreDeclaration
Swift
public class Function: Expression
-
An Ordering represents a single ordering component in the query ORDER BY clause.
See moreDeclaration
Swift
public class 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 moreDeclaration
Swift
public final class Replicator
-
A property expression.
See moreDeclaration
Swift
public class PropertyExpression: Expression
-
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 moreDeclaration
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.
Declaration
Swift
public class Result : ReadOnlyArrayProtocol, ReadOnlyDictionaryProtocol
-
A Join component representing a single JOIN clause in the query statement.
See moreDeclaration
Swift
public class Join
-
The In class represents the IN clause object in a quantified operator (ANY/ANY AND EVERY/EVERY
See moreIN 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. Declaration
Swift
public class In
-
ReadOnlyFragment provides readonly access to data value. ReadOnlyFragment also provides subscript access by either key or index to the nested values which are wrapped by ReadOnlyFragment objects.
See moreDeclaration
Swift
public class ReadOnlyFragment: ReadOnlyFragmentProtocol, ReadOnlyArrayFragment, ReadOnlyDictionaryFragment
-
A database query. A Query instance can be constructed by calling one of the select class methods.
See moreDeclaration
Swift
public class Query
-
ResultSet is a result returned from a query.
See moreDeclaration
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 access to dictionary data.
See moreDeclaration
Swift
public class DictionaryObject: ReadOnlyDictionaryObject, DictionaryProtocol
-
ReadOnlyDictionaryObject provides readonly access to dictionary data.
See moreDeclaration
Swift
public class ReadOnlyDictionaryObject: ReadOnlyDictionaryProtocol
-
A LiveQuery automatically observes database changes and re-run the query that the LiveQuery object is created from. If there is a new query result or an error occurred, the LiveQuery object will report the changed result via the added listener blocks.
See moreDeclaration
Swift
public class LiveQuery
-
ReadOnlyArrayObject provides readonly access to array data.
See moreDeclaration
Swift
public class ReadOnlyArrayObject: ReadOnlyArrayProtocol
-
An Expression represents an expression used for constructing a query statement.
See moreDeclaration
Swift
public class Expression
-
A Couchbase Lite document.
See moreDeclaration
Swift
public class Document : ReadOnlyDocument, DictionaryProtocol
-
A meta property expression.
See moreDeclaration
Swift
public class MetaExpression: Expression
-
ArrayObject provides access to array data.
See moreDeclaration
Swift
public class ArrayObject: ReadOnlyArrayObject, ArrayProtocol
-
Readonly version of the Document.
See moreDeclaration
Swift
public class ReadOnlyDocument : ReadOnlyDictionaryObject
-
SelectResult represents a signle return value of the query statement.
See moreDeclaration
Swift
public class SelectResult