#include <connection_info.hpp>
|
template<class Operator > |
void | process (Operator &op) |
|
This class contains all information about a database connection consisting of
- database type
- username
- password
- hostname
- port
- database name
- driver
◆ parse()
static connection_info matador::connection_info::parse |
( |
const std::string & |
info, |
|
|
unsigned short |
default_port = 0 , |
|
|
const std::string & |
default_driver = "" |
|
) |
| |
|
static |
This parses database uri into a connection_info object.
- Parameters
-
info | The database uri |
default_port | The default port to use |
default_driver | The default driver to use |
- Returns
- A connection_info object
◆ to_string()
static std::string matador::connection_info::to_string |
( |
const connection_info & |
ci | ) |
|
|
static |
Convert a connection_info object into a database uri.
- Parameters
-
- Returns
- The corresponding database uri
◆ database
std::string matador::connection_info::database |
Name of the database to use
◆ driver
std::string matador::connection_info::driver |
Driver to use. This is used by th mssql/odbc backend.
◆ hostname
std::string matador::connection_info::hostname |
Hostname of the database.
◆ password
std::string matador::connection_info::password |
◆ port
unsigned short matador::connection_info::port {} |
Port of the database server.
◆ type
std::string matador::connection_info::type |
Type of the database i.e. sqlite or mysql.
◆ user
std::string matador::connection_info::user |
The documentation for this struct was generated from the following file:
- matador/sql/connection_info.hpp