Skip to content

Commit 63e0b90

Browse files
committed
feat: add db_name to configuration
project-tsurugi/tsurugi-issues#1409
1 parent c9162e4 commit 63e0b90

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

include/limestone/api/configuration.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class configuration {
7676
*/
7777
void set_instance_id(std::string_view instance_id) noexcept;
7878

79+
/**
80+
* @brief setter for db_name
81+
* @param db_name the database name
82+
*/
83+
void set_db_name(std::string_view db_name) noexcept;
84+
7985
/**
8086
* @brief setter for recover_max_parallelism
8187
* @param recover_max_parallelism the number of recover_max_parallelism
@@ -90,6 +96,7 @@ class configuration {
9096
boost::filesystem::path metadata_location_{};
9197

9298
std::string instance_id_{};
99+
std::string db_name_{};
93100

94101
int recover_max_parallelism_{default_recover_max_parallelism};
95102

src/limestone/configuration.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ void configuration::set_instance_id(std::string_view instance_id) noexcept {
4747
instance_id_ = instance_id;
4848
}
4949

50+
void configuration::set_db_name(std::string_view db_name) noexcept {
51+
db_name_ = db_name;
52+
}
53+
5054
} // namespace limestone::api

0 commit comments

Comments
 (0)