DbPlugin Class ReferenceDatabase plugin loader.
More...
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| void | close () |
| Unloads library. | |
| Database * | createHandle () const throw (Exception) |
| Creates new Database object. | |
| DbPlugin (const char *pFilename) throw (Exception) | |
| Loads library from path. | |
| DbPlugin () | |
| Default constructor creates empty plugin (with no library loaded). | |
| void | destroyHandle (Database *pDb) |
| Destroys Database object. | |
| dbaPluginInfo | getInfo () const throw (Exception) |
| Loads plugin information. | |
| void | load (const char *pFilename) throw (Exception) |
| Loads library from path. | |
| virtual | ~DbPlugin () |
| Destructor. | |
Loads plugin library and unloads it upon destruction. Usage:
try { DbPlugin* plugin = new DbPlugin("libsqlite3"); Database* db(plugin->createHandle()); DbConnection* conn = db->getConnection(); [...] delete conn; delete db; } catch (const dba::Exception& ex) { //error handling code }; //cleanup only when all created databases and connections are deleted delete plugin;
|
|
Loads library from path.
|
|
|
Destructor. Calls close() if library is still loaded |
|
|
Creates new Database object.
|
|
|
Loads plugin information.
|
|
|
Loads library from path.
|
| Documentation |
|---|
| Quick start |
| Examples |
| Search |
| API Documentation |
|---|
| Class hierarchy |
| Member index |
| API Reference |
| Store filters |
| Store table macros |