|
Public Member Functions |
| LiteDb (sqlite3 *con) |
bool | isClosed () |
void | closeDb () |
RLiteMemTable | execDirect (IN(RString) sql) |
| execute a sql command on a LiteDB The complete result set will be hold in memory
|
void | execute (IN(RString) sql) |
| executes a SQL command
|
void | execute (IN(RString) sql, IN(acdk::lang::dmi::RDmiDelegate) delegate) |
| executes a SQL command an calles the delegate for each record set The arguments passed to the delegate are: - LiteDb __db - all fields as String of one record.
|
int | executeUpdate (IN(RString) cmd) |
| execute update, return the number of changes
|
RLiteTable | prepareStatement (IN(RString) sql) |
| creates a prepared statement
|
void | createSqlFunction (IN(RString) function, int args, IN(acdk::lang::dmi::RDmiDelegate) delegate) |
| this creates a function can be used inside an SQL Statement.
|
int | checkResult (int result) |
| internal helper to check calls to the C api
|
void | checkLastResult () |
| only call this if a prior call failed
|
sqlite3 * | getConPtr () |
int | changes () |
| sqlite3_changes
|
void | _checkOpenDb () |
| internal helper
|
Static Public Member Functions |
RLiteDb | openDb (IN(RString) fileName) |
int | checkResult (sqlite3 *con, int result) |
| internal helper to check calls to the C api
|
void | checkLastResult (sqlite3 *con) |
| internal helper to check calls to the C api
|
RString | getVersion () |
| return the version string of the sqlite3 c library
|
Protected Attributes |
sqlite3 * | _con |