RBSQLiteResult Class Reference

Inherits from NSObject
Declared in RBSQLiteResult.h

Overview

Holds information about the response from an SQLite database request.

  isValid

Indicates that the there were no errors either from SQLite or otherwise.

@property (nonatomic, readonly) BOOL isValid

Declared In

RBSQLiteResult.h

  errorMessage

The error message if available detailing the error.

@property (nonatomic, readonly, nullable) NSString *errorMessage

Declared In

RBSQLiteResult.h

  sqliteErrorCode

The SQLite error code for the issue, for more details please visit https://www.sqlite.org/c3ref/c_abort.html

@property (nonatomic, readonly) NSInteger sqliteErrorCode

Declared In

RBSQLiteResult.h

  resultSet

A RBSQLiteResultSet containing the data from a returned SQL query.

@property (nonatomic, readonly, nullable) RBSQLiteResultSet *resultSet

Declared In

RBSQLiteResult.h

  errorSource

If an error occured, this will indicate the source of the failure.

@property (nonatomic, readonly) RBSQLiteResultErrorSource errorSource

Declared In

RBSQLiteResult.h

– initWithResultSet:

Initializes a new RBSQLiteResult object and populating it with an existing RBSQLiteResultSet.

- (nonnull instancetype)initWithResultSet:(nonnull RBSQLiteResultSet *)resultSet

Parameters

resultSet

The RBSQLiteResultSet containing the data for this result.

Return Value

A newly initialized and populated RBSQLiteResult object.

Declared In

RBSQLiteResult.h

– initWithErrorMessage:

Initializes a new RBSQLiteResult object indicating a (non SQLite) failure occurred.

- (nonnull instancetype)initWithErrorMessage:(nonnull NSString *)errorMessage

Parameters

errorMessage

The error message.

Return Value

A newly initialized RBSQLiteResult object.

Declared In

RBSQLiteResult.h

– initWithSQLiteErrorCode:withMessage:

Initializes a new RBSQLiteResult object indicating an SQLite) failure occurred.

- (nonnull instancetype)initWithSQLiteErrorCode:(NSInteger)sqliteErrorCode withMessage:(nonnull NSString *)errorMessage

Parameters

sqliteErrorCode

The SQLite error code, for more details please visit https://www.sqlite.org/c3ref/c_abort.html

errorMessage

The error message.

Return Value

A newly initialized RBSQLiteResult object.

Declared In

RBSQLiteResult.h