SQLite Database. More...
#include <rdbsqlite.h>
Inheritance diagram for RDbSQLite:
Collaboration diagram for RDbSQLite:
Public Member Functions | |
RDbSQLite (const RURI &db) | |
virtual size_t | GetLastInsertId (void) |
virtual void * | InitQuery (const RString &sql, size_raw &nbcols) |
virtual void | ReleaseQuery (void *data) |
virtual bool | EndQuery (const void *data) |
virtual void | StartQuery (void *data) |
virtual void | NextQuery (void *data) |
virtual RString | GetField (const void *data, size_t index) |
virtual | ~RDbSQLite (void) |
Public Member Functions inherited from RDb | |
RDb (Db type) | |
Db | GetType (void) const |
virtual void | CreateTransactionTable (const RString &name, size_t nb,...) |
void | RunSQLFile (const RURI &file, bool coutit=false) |
virtual | ~RDb (void) |
Private Attributes | |
sqlite3 * | Connection |
int | Code |
Additional Inherited Members | |
Public Types inherited from RDb | |
enum | Db { MySQL, SQLite, PostgreSQL } |
Protected Attributes inherited from RDb | |
Db | Type |
Detailed Description
SQLite Database.
The RDbSQLite class provides a representation of connection to a SQLite database.
- See also
- RQuery
Constructor & Destructor Documentation
Construct a connection to the SQLite database.
- Parameters
-
db URI of the database.
|
virtual |
Destruct the connection to the database.
Member Function Documentation
|
virtual |
Get the last auto-increment identifier inserted.
Implements RDb.
Initialize a query.
- Parameters
-
sql SQL query. nbcols Number of columns of the query (assigned by the method).
- Returns
- Pointer to a structure allocated by the database.
Implements RDb.
|
virtual |
|
virtual |
- Parameters
-
data Database-dependent data.
- Returns
- true if all the rows of a query are treated.
Implements RDb.
|
virtual |
|
virtual |
|
virtual |
Return a specific field of the current row.
- Parameters
-
data Database-dependent data. index Index of the field in the query.
Implements RDb.
Field Documentation
|
private |
Connection to SQLite database.
|
private |
Result of the last operation.