Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mysql Configurator
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
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
BIAS
Configurators
Mysql Configurator
Compare revisions
ebbb0f36843dd8f58e3b0442bfe5078732b3e022 to 3cf7397511847e3ffbf42a736aac74a97b131210
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
bias/configurators/mysql-configurator
Select target project
No results found
3cf7397511847e3ffbf42a736aac74a97b131210
Select Git revision
Branches
main
Tags
v1.0
Swap
Target
bias/configurators/mysql-configurator
Select target project
bias/configurators/mysql-configurator
1 result
ebbb0f36843dd8f58e3b0442bfe5078732b3e022
Select Git revision
Branches
main
Tags
v1.0
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
adding doxygen
· 8fe370bd
Valerio Pastore
authored
1 year ago
8fe370bd
.
· 69f01f38
Valerio Pastore
authored
1 year ago
69f01f38
.
· 3cf73975
Valerio Pastore
authored
1 year ago
3cf73975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deps/Base-DAQ
+1
-1
1 addition, 1 deletion
deps/Base-DAQ
include/Mysql_Conf.h
+21
-0
21 additions, 0 deletions
include/Mysql_Conf.h
with
22 additions
and
1 deletion
Base-DAQ
@
a00f9a27
Compare
8a0ea2d0
...
a00f9a27
Subproject commit
8
a0
ea2d0e699863df5fe1c91caf2d7b0855957be
Subproject commit a0
0f9a27afbf5f75dab7db2368b9b9b6fcb395e1
This diff is collapsed.
Click to expand it.
include/Mysql_Conf.h
View file @
3cf73975
...
...
@@ -5,20 +5,41 @@
namespace
inaf
::
oasbo
::
Configurators
{
/**
* @brief A class that represents a MySQL configurator.
*
* This class is responsible for reading and pushing configurations to a MySQL database.
* It inherits from the BaseConfigurator class. Check Base_Configurator.h for more information.
*/
class
MysqlConfigurator
:
public
BaseConfigurator
{
protected:
sql
::
mysql
::
MySQL_Driver
*
driver
=
nullptr
;
sql
::
Connection
*
con
=
nullptr
;
public:
/**
* @brief Constructs a MysqlConfigurator object with the specified parameters.
*
* @param ip The IP address of the MySQL server.
* @param port The port number of the MySQL server.
* @param username The username for connecting to the MySQL server.
* @param password The password for connecting to the MySQL server.
* @param dbname The name of the MySQL database.
*/
MysqlConfigurator
(
std
::
string
ip
,
int
port
,
std
::
string
username
,
std
::
string
password
,
std
::
string
dbname
);
int
readConfigFromSource
()
override
;
int
readConfigFromSource
(
std
::
string
target
)
override
;
int
pushConfigToSource
()
override
;
int
pushConfigToSource
(
std
::
string
target
)
override
;
int
insert
(
std
::
map
<
std
::
string
,
std
::
string
>
,
std
::
string
target
)
override
;
~
MysqlConfigurator
()
{
if
(
con
!=
nullptr
)
{
con
->
close
();
...
...
This diff is collapsed.
Click to expand it.