added connection impl class

This commit is contained in:
2023-11-06 20:31:45 +01:00
parent ba3db4aa78
commit f4f5c00eec
16 changed files with 468 additions and 54 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef QUERY_CONNECTION_INFO_HPP
#define QUERY_CONNECTION_INFO_HPP
#include <string>
namespace matador::sql {
struct connection_info
{
std::string type;
std::string user;
std::string password;
std::string hostname;
unsigned short port{};
std::string database;
std::string driver;
static connection_info parse(const std::string &info, unsigned short default_port = 0, const std::string &default_driver = "");
static std::string to_string(const connection_info &ci);
};
}
#endif //QUERY_CONNECTION_INFO_HPP