![]() |
mksqlite
2.5
A MATLAB interface to SQLite
|
SQLite interface stack. More...
Collaboration diagram for SQLstack:Public Types | |
| enum | { COUNT_DB = CONFIG_MAX_NUM_OF_DBS } |
| Stack size. | |
Public Member Functions | |
| SQLstack () | |
| Standard Ctor (first database slot is default) | |
| ~SQLstack () | |
| Dtor. More... | |
| SQLstackitem & | current () |
| Returns the handle of the current database. | |
| bool | isValidId (int newId) |
Checks if database newId is in valid range. | |
| void | switchTo (int newId) |
Makes newId as current database id. | |
| SQLiface * | createInterface () |
| Returns a new interface to the current database. | |
| void | printStatuses (int dbid_req, int dbid) |
| Outputs current status for each database slot. | |
| int | getNextFreeId () |
| Returns the first next free id slot (base 0). Database must be closed. | |
| int | closeAllDbs () |
| Closes all open databases and returns the number of closed DBs, if any open. | |
Public Attributes | |
| SQLstackitem | m_db [COUNT_DB] |
| SQLite database slots. | |
| int | m_dbid |
| recent selected database id, base 0 | |
SQLite interface stack.
Holds a defined number (COUNT_DB) of SQLite slots (with dbids) to facilitate usage of multiple parallel databases. Each database can be accessed by its dbid (database ID) as first optional parameter to mksqlite:
Definition at line 70 of file mksqlite.cpp.
|
inline |
Dtor.
Closes all databases and shuts sqlite engine down.
Definition at line 92 of file mksqlite.cpp.
References closeAllDbs().
1.8.13