Index

RBSQLiteResult.h

Classes


RBSQLiteResult

Holds information about the response from an SQLite database request.

Properties

Indicates that the there were no errors either from SQLite or otherwise.
public isValid Bool { get }

The error message if available detailing the error.
public errorMessage NSString? { get }

The SQLite error code for the issue, for more details please visit https://www.sqlite.org/c3ref/c_abort.html
public sqliteErrorCode int { get }

A RBSQLiteResultSet containing the data from a returned SQL query.
public resultSet RBSQLiteResultSet? { get }

If an error occured, this will indicate the source of the failure.
public errorSource RBSQLiteResultErrorSource { get }

Functions

Initializes a new RBSQLiteResult object and populating it with an existing RBSQLiteResultSet.
@param resultSet : The RBSQLiteResultSet containing the data for this result.
@returns A newly initialized and populated RBSQLiteResult object.
- (nonnull instancetype)initWithResultSet:(nonnull RBSQLiteResultSet *)resultSet;

Initializes a new RBSQLiteResult object indicating a (non SQLite) failure occurred.
@param errorMessage : The error message.
@param source : The source of the error.
@returns A newly initialized RBSQLiteResult object.
- (nonnull instancetype)initWithErrorMessage:(nonnull NSString *)errorMessage withSource:(RBSQLiteResultErrorSource) source;

Initializes a new RBSQLiteResult object indicating an SQLite) failure occurred.
@param sqliteErrorCode : The SQLite error code, for more details please visit https://www.sqlite.org/c3ref/c_abort.html
@param errorMessage : The error message.
@returns A newly initialized RBSQLiteResult object.
- (nonnull instancetype)initWithSQLiteErrorCode:(NSInteger)sqliteErrorCode withMessage:(nonnull NSString *)errorMessage;