CBLQueryRow

@interface CBLQueryRow : NSObject

A single result from a CBLQuery. The NSEnumeration returned by -[CBLQuery run:] produces these.

  • The ID of the document that produced this row.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull documentID;

    Swift

    var documentID: String { get }
  • The sequence number of the document revision that produced this row.

    Declaration

    Objective-C

    @property (readonly, nonatomic) uint64_t sequence;

    Swift

    var sequence: UInt64 { get }
  • The document that produced this row.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CBLDocument *_Nonnull document;

    Swift

    var document: CBLDocument { get }
  • The result value at the given index (if the query has a returning specification.)

    Declaration

    Objective-C

    - (nullable id)valueAtIndex:(NSUInteger)index;

    Swift

    func value(at index: UInt) -> Any?
  • The result boolean value at the given index. - parameter: index the returning value index. - returns: the result boolean value.

    Declaration

    Objective-C

    - (_Bool)booleanAtIndex:(NSUInteger)index;

    Swift

    func boolean(at index: UInt) -> Bool

    Parameters

    index

    the returning value index.

    Return Value

    the result boolean value.

  • The result integer value at the given index. - parameter: index the returning value index. - returns: the result integer value.

    Declaration

    Objective-C

    - (NSInteger)integerAtIndex:(NSUInteger)index;

    Swift

    func integer(at index: UInt) -> Int

    Parameters

    index

    the returning value index.

    Return Value

    the result integer value.

  • The result float value at the given index. - parameter: index the returnning value index. - returns: the result float value.

    Declaration

    Objective-C

    - (float)floatAtIndex:(NSUInteger)index;

    Swift

    func float(at index: UInt) -> Float

    Parameters

    index

    the returnning value index.

    Return Value

    the result float value.

  • The result double value at the given index. - parameter: index the returning value index. - returns: the result double value.

    Declaration

    Objective-C

    - (double)doubleAtIndex:(NSUInteger)index;

    Swift

    func double(at index: UInt) -> Double

    Parameters

    index

    the returning value index.

    Return Value

    the result double value.

  • The result string value at the given index. - parameter: index the returning value index. - returns: the result string value.

    Declaration

    Objective-C

    - (nullable NSString *)stringAtIndex:(NSUInteger)index;

    Swift

    func string(at index: UInt) -> String?

    Parameters

    index

    the returning value index.

    Return Value

    the result string value.

  • The result date value at the given index. - parameter: index the returning value index. - returns: the result date value.

    Declaration

    Objective-C

    - (nullable NSDate *)dateAtIndex:(NSUInteger)index;

    Swift

    func date(at index: UInt) -> Date?

    Parameters

    index

    the returning value index.

    Return Value

    the result date value.

  • The result object value at the given index. - parameter: subscript the returning value index. - returns: the result object value.

    Declaration

    Objective-C

    - (nullable id)objectAtIndexedSubscript:(NSUInteger)subscript;

    Swift

    subscript(subscript: UInt) -> Any? { get }

    Parameters

    subscript

    the returning value index.

    Return Value

    the result object value.

  • Not Available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;