CBLQueryRow

@interface CBLQueryRow : NSObject

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

  • The number of values in this row (if the query has a returning specification.)

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger valueCount;

    Swift

    var valueCount: UInt { 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?

    Parameters

    index

    The value index.

    Return Value

    The result value.

  • The result boolean value at the given index.

    Declaration

    Objective-C

    - (_Bool)booleanAtIndex:(NSUInteger)index;

    Swift

    func boolean(at index: UInt) -> Bool

    Parameters

    index

    The value index.

    Return Value

    The result boolean value.

  • The result integer value at the given index.

    Declaration

    Objective-C

    - (NSInteger)integerAtIndex:(NSUInteger)index;

    Swift

    func integer(at index: UInt) -> Int

    Parameters

    index

    The value index.

    Return Value

    The result integer value.

  • The result float value at the given index.

    Declaration

    Objective-C

    - (float)floatAtIndex:(NSUInteger)index;

    Swift

    func float(at index: UInt) -> Float

    Parameters

    index

    The value index.

    Return Value

    The result float value.

  • The result double value at the given index.

    Declaration

    Objective-C

    - (double)doubleAtIndex:(NSUInteger)index;

    Swift

    func double(at index: UInt) -> Double

    Parameters

    index

    The value index.

    Return Value

    The result double value.

  • The result string value at the given index.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    index

    The value index.

    Return Value

    The result string value.

  • The result date value at the given index.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    index

    The value index.

    Return Value

    The result date value.

  • The result object value at the given index.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    subscript

    The value index.

    Return Value

    The result object value.

  • Not Available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;