Skip to content
Snippets Groups Projects
Commit f8f14788 authored by Steven Murray's avatar Steven Murray
Browse files

Added 'not implemented' placeholder for postgresql database login

parent 91149c3b
Branches
Tags
No related merge requests found
......@@ -99,6 +99,8 @@ Login Login::parseString(const std::string &connectionString) {
return parseSqlite(typeAndDetails.connectionDetails);
} else if(typeAndDetails.dbTypeStr == "mysql") {
return parseMySql(typeAndDetails.connectionDetails);
} else if(typeAndDetails.dbTypeStr == "postgresql") {
return parsePostgresql(typeAndDetails.connectionDetails);
}
throw exception::Exception(std::string("Invalid connection string: Unknown database type ") +
......@@ -204,5 +206,13 @@ Login Login::parseMySql(const std::string &connectionDetails) {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
//------------------------------------------------------------------------------
// parsePostgresql
//------------------------------------------------------------------------------
Login Login::parsePostgresql(const std::string &connectionDetails) {
//return Login(DBTYPE_POSTGRESQL, "", "", connectionDetails, "", 0);
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
} // namespace catalogue
} // namespace cta
......@@ -38,6 +38,7 @@ struct Login {
DBTYPE_ORACLE,
DBTYPE_SQLITE,
DBTYPE_MYSQL,
DBTYPE_POSTGRESQL,
DBTYPE_NONE
};
......@@ -191,6 +192,13 @@ struct Login {
*/
static Login parseMySql(const std::string &connectionDetails);
/**
* Parses the specified connection details.
*
* @param connectionDetails The database connection details.
*/
static Login parsePostgresql(const std::string &connectionDetails);
/**
* Human readable description of the format of the database
* login/configuration file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment