#include <db.h>
Inheritance diagram for DB:


Public Types | |
| enum | RecordStatus { unknown, waiting, registered } |
| enum of record (triplet) states More... | |
| typedef std::vector< std::string > | ParamVector |
Public Member Functions | |
| DB () throw (std::exception) | |
| void | list_drivers (std::ostream &os) |
| list installed drivers (see http://dbi.sf.net for more drivers) | |
| ~DB () | |
| std::string | getConError (const std::string &) const |
| |
| void | createTable (const class WLStaticDef &staticDef) throw (std::exception) |
| create a table if it doesnt exist | |
| dbi_result | executeSQL (const std::string &sql) throw (std::exception) |
| virtual int | handle_signal (int signum) |
| signal handling | |
Protected Member Functions | |
| const std::string | trimLastByte (std::string) |
| std::string | getSqlCondition (const WLCompares &compares, const Triplet &triplet) const |
| const std::string | numToStr (unsigned) const |
| std::string | getWeakHost (const std::string &) const throw (std::exception) |
| void | open () throw (std::exception) |
| open a db connection | |
| void | close () |
| destroy db connection | |
| void | init_wlMods () |
| initialise wl modules based on config | |
Definition at line 44 of file db.h.
| enum DB::RecordStatus |
| void DB::open | ( | ) | throw (std::exception) [protected] |
open a db connection
older version of libdbi expected value to be non-const
Definition at line 99 of file db.cpp.
References createTable(), getConError(), Cfg::getDbParamVector(), Cfg::getDbType(), init_wlMods(), Cfg::isModeInit(), Cfg::isVerbose(), and list_drivers().
Referenced by DB().
Here is the call graph for this function:

1.5.1