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:
eelke 2017-02-26 19:29:50 +01:00
parent 0a809a7288
commit d0ea9dfa0c
39 changed files with 1767 additions and 493 deletions

View file

@ -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;
};