CBLQuerySelectResult

@interface CBLQuerySelectResult : NSObject

A CBLQuerySelectResult represents a returning value in each query result row.

  • Creates a CBLQuerySelectResult for the given property name.

    Declaration

    Objective-C

    + (nonnull instancetype)property:(nonnull NSString *)property;

    Swift

    class func property(_ property: String) -> Self

    Parameters

    property

    The property name.

    Return Value

    The CBLQuerySelectResult.

  • Creates a CBLQuerySelectResult for the given property name and the alias name.

    Declaration

    Objective-C

    + (nonnull instancetype)property:(nonnull NSString *)property
                                  as:(nullable NSString *)alias;

    Swift

    class func property(_ property: String, as alias: String?) -> Self

    Parameters

    property

    The property name.

    alias

    The alias name.

    Return Value

    The CBLQuerySelectResult.

  • Creates a CBLQuerySelectResult for the given expression.

    Declaration

    Objective-C

    + (nonnull instancetype)expression:(nonnull CBLQueryExpression *)expression;

    Swift

    class func expression(_ expression: CBLQueryExpression) -> Self

    Parameters

    expression

    The expression.

    Return Value

    The CBLQuerySelectResult.

  • Creates a CBLQuerySelectResult for the given expression and the alias name.

    Declaration

    Objective-C

    + (nonnull instancetype)expression:(nonnull CBLQueryExpression *)expression
                                    as:(nullable NSString *)alias;

    Swift

    class func expression(_ expression: CBLQueryExpression, as alias: String?) -> Self

    Parameters

    expression

    The expression.

    alias

    The alias name.

    Return Value

    The CBLQuerySelectResult.

  • Creates a CBLQuerySelectResult that returns all properties data. The query returned result will be grouped into a single CBLMutableDictionary object under the key of the data source name.

    Declaration

    Objective-C

    + (nonnull instancetype)all;

    Swift

    class func all() -> Self

    Return Value

    The CBLQuerySelectResult.

  • Creates a CBLQuerySelectResult that returns all properties data. The query returned result will be grouped into a single CBLMutableDictionary object under the key of the data source name key or the given alias data source name if specified.

    Declaration

    Objective-C

    + (nonnull instancetype)allFrom:(nullable NSString *)alias;

    Swift

    class func all(from alias: String?) -> Self

    Parameters

    alias

    The data source alias name

    Return Value

    The CBLQuerySelectResult.

  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;