![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <sqlhelpers.h>
Public Member Functions | |
StatementRead (sqlite3 *db, const char *, bool justRun=false) | |
Construct with the statement and maybe just run the damn thing. | |
StatementRead (sqlite3 *db, NSString *, bool justRun=false) | |
~StatementRead () | |
Destructor will call finalize. | |
bool | stepRow () |
void | finalize () |
You can force a finalize here. | |
int | getInt () |
Return an int from the current row. | |
double | getDouble () |
Return a double from the current row. | |
NSString * | getString () |
Return an NSString from the current row. | |
BOOL | getBool () |
Return a boolean from the current row. | |
Protected Member Functions | |
void | init (sqlite3 *db, const char *, bool justRun=false) |
Protected Attributes | |
sqlite3 * | db |
sqlite3_stmt * | stmt |
bool | isFinalized |
int | curField |
Encapsulates a SQLite3 statement in a way that does not make me want to punch someone.
bool sqlhelpers::StatementRead::stepRow | ( | ) |
Calls step, expecting a row. Returns false if we're done, throws an exception on error