Couchbase Lite
Objective-C API for iOS and Mac OS
CBLQuery.h File Reference
#import "CBLBase.h"

Go to the source code of this file.

Classes

class  CBLQuery
 Represents a query of a CouchbaseLite 'view', or of a view-like resource like _all_documents. More...
 
class  CBLLiveQuery
 A CBLQuery subclass that automatically refreshes the result rows every time the database changes. More...
 
class  CBLQueryEnumerator
 Enumerator on a CBLQuery's result rows. More...
 
class  CBLQueryRow
 A result row from a CouchbaseLite view query. More...
 

Functions

NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM (unsigned, CBLAllDocsMode)
 
typedef NS_ENUM (unsigned, CBLIndexUpdateMode)
 Query options to allow out-of-date results to be returned in return for faster queries. More...
 

Function Documentation

◆ NS_ENUM() [1/2]

NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM ( unsigned  ,
CBLAllDocsMode   
)

< Normal behavior for all-docs query



< Will include rows for deleted documents


< Rows will indicate conflicting revisions

< Will only return rows for docs in conflict
< Order by sequence number (i.e. chronologically)

◆ NS_ENUM() [2/2]

typedef NS_ENUM ( unsigned  ,
CBLIndexUpdateMode   
)

Query options to allow out-of-date results to be returned in return for faster queries.

< Always update index if needed before querying (default)

< Don't update the index; results may be out of date
< Update index after querying (results may still be out of date)