Moved some parts to a static lib so both the executable and the tests can link to it.
Written additional tests.
This commit is contained in:
parent
0a809a7288
commit
d0ea9dfa0c
39 changed files with 1767 additions and 493 deletions
|
|
@ -13,6 +13,12 @@ enum class SslMode {
|
|||
verify_full=5
|
||||
};
|
||||
|
||||
enum class PasswordMode {
|
||||
Unsave,
|
||||
Encrypted,
|
||||
DontSave
|
||||
};
|
||||
|
||||
class ConnectionConfig {
|
||||
public:
|
||||
ConnectionConfig();
|
||||
|
|
@ -57,6 +63,9 @@ public:
|
|||
const char * const * getValues() const;
|
||||
|
||||
bool isSameDatabase(const ConnectionConfig &rhs) const;
|
||||
|
||||
bool dirty() const;
|
||||
void clean();
|
||||
private:
|
||||
std::string m_name;
|
||||
std::string m_host;
|
||||
|
|
@ -75,6 +84,8 @@ private:
|
|||
|
||||
std::string m_applicationName;
|
||||
|
||||
bool m_dirty = false;
|
||||
|
||||
static std::vector<const char*> s_keywords;
|
||||
mutable std::vector<const char*> m_values;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue