CBLQueryDataSource
@interface CBLQueryDataSource : NSObject
A query data source. used for specifiying the data source for your query. The current data source supported is the database.
-
Create a database data source.
Declaration
Objective-C
+ (nonnull instancetype)database:(nonnull CBLDatabase *)database;
Swift
class func database(_ database: CBLDatabase) -> Self
Parameters
database
The database used as the data source as the query.
Return Value
The CBLQueryDatabase instance.
-
Create a database data source with the given alias name.
Declaration
Objective-C
+ (nonnull instancetype)database:(nonnull CBLDatabase *)database as:(nullable NSString *)alias;
Swift
class func database(_ database: CBLDatabase, as alias: String?) -> Self
Parameters
database
The database used as the data source as the query. @alias The alias name of the data source.
Return Value
The CBLQueryDatabase instance.
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;