dca_interface
6.3.4
|
#include <base_classes.h>
Database connection class for a local or remote database.
Before a database can be used a connection to the database has to be established. This class is used to connect to a local or a remote database.
Definition at line 858 of file base_classes.h.
Public Member Functions | |
std::string | getDatabaseVersion () const |
Returns the currently used database version. More... | |
DatabaseInformation | getDatabaseInformation () const |
Returns information about the underlying database. More... | |
LogLevel | setLogLevel (LogLevel newLevel) |
Sets the logging level for the given class instance. The old value will be returned. More... | |
std::string dca::DbConnection::getDatabaseVersion | ( | ) | const |
Returns the currently used database version.
If the DbConnection is valid and connected to a database this is the version of the database. The format is <major>.<minor>
Where major is a number usually 6 for local databases and 5 or 6 for remote databases and minor is a 8-digit number with leading 0's
Examples:
local: "6.00012345" remote "5.00023478"
DatabaseInformation dca::DbConnection::getDatabaseInformation | ( | ) | const |
Returns information about the underlying database.
An | exception of type ExDca is thrown if this function fails e.g. the DbConnection object isn't initialized before. |
Sets the logging level for the given class instance. The old value will be returned.
Usually the logging level is set to LOG_Notice.
[in] | newLevel | The new LogLevel the class instance should use for logging |