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.

    Declaration

    Objective-C

    - (_Bool)booleanAtIndex:(NSUInteger)index;

    Swift

    func boolean(at index: UInt) -> Bool
  • The result integer value at the given index.

    Declaration

    Objective-C

    - (NSInteger)integerAtIndex:(NSUInteger)index;

    Swift

    func integer(at index: UInt) -> Int
  • The result integer value at the given index.

    Declaration

    Objective-C

    - (float)floatAtIndex:(NSUInteger)index;

    Swift

    func float(at index: UInt) -> Float
  • The result double value at the given index.

    Declaration

    Objective-C

    - (double)doubleAtIndex:(NSUInteger)index;

    Swift

    func double(at index: UInt) -> Double
  • The result string value at the given index.

    Declaration

    Objective-C

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

    Swift

    func string(at index: UInt) -> String?
  • The result date value at the given index.

    Declaration

    Objective-C

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

    Swift

    func date(at index: UInt) -> Date?
  • The result object value at the given index.

    Declaration

    Objective-C

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

    Swift

    subscript(subscript: UInt) -> Any? { get }
  • Not Available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;