Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f8f14788
Commit
f8f14788
authored
6 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added 'not implemented' placeholder for postgresql database login
parent
91149c3b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rdbms/Login.cpp
+10
-0
10 additions, 0 deletions
rdbms/Login.cpp
rdbms/Login.hpp
+8
-0
8 additions, 0 deletions
rdbms/Login.hpp
with
18 additions
and
0 deletions
rdbms/Login.cpp
+
10
−
0
View file @
f8f14788
...
...
@@ -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
This diff is collapsed.
Click to expand it.
rdbms/Login.hpp
+
8
−
0
View file @
f8f14788
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment