File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ using namespace fbcpp;
3030using namespace fbcpp ::impl;
3131
3232
33- void DatabaseManager::execute (const DatabaseManagerOptions & options)
33+ void DatabaseManager::execute (const DatabasePropertiesOptions & options)
3434{
3535 StatusWrapper statusWrapper{getClient ()};
3636 auto builder =
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace fbcpp
3939 // /
4040 // / Represents options used to configure database properties through the service manager.
4141 // /
42- class DatabaseManagerOptions final
42+ class DatabasePropertiesOptions final
4343 {
4444 public:
4545 // /
@@ -53,7 +53,7 @@ namespace fbcpp
5353 // /
5454 // / Sets the database path to be configured.
5555 // /
56- DatabaseManagerOptions & setDatabase (const std::string& value)
56+ DatabasePropertiesOptions & setDatabase (const std::string& value)
5757 {
5858 database = value;
5959 return *this ;
@@ -70,7 +70,7 @@ namespace fbcpp
7070 // /
7171 // / Sets the replica mode.
7272 // /
73- DatabaseManagerOptions & setReplicaMode (ReplicaMode value)
73+ DatabasePropertiesOptions & setReplicaMode (ReplicaMode value)
7474 {
7575 replicaMode = value;
7676 return *this ;
@@ -318,7 +318,7 @@ namespace fbcpp
318318 // /
319319 // / Configures database properties using the provided options.
320320 // /
321- void execute (const DatabaseManagerOptions & options);
321+ void execute (const DatabasePropertiesOptions & options);
322322
323323 // /
324324 // / Runs a repair operation using the provided options.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(setReplicaModeNone)
6767 }
6868
6969 DatabaseManager manager{CLIENT , makeServiceManagerOptions ()};
70- manager.execute (DatabaseManagerOptions ().setDatabase (databasePath).setReplicaMode (ReplicaMode::READ_ONLY ));
70+ manager.execute (DatabasePropertiesOptions ().setDatabase (databasePath).setReplicaMode (ReplicaMode::READ_ONLY ));
7171
7272 { // scope
7373 Attachment attachment{CLIENT , databaseUri, attachmentOptions};
@@ -84,7 +84,7 @@ BOOST_AUTO_TEST_CASE(setReplicaModeNone)
8484 BOOST_CHECK_EQUAL (queryMon.getInt32 (0 ).value (), 1 );
8585 }
8686
87- manager.execute (DatabaseManagerOptions ().setDatabase (databasePath).setReplicaMode (ReplicaMode::NONE ));
87+ manager.execute (DatabasePropertiesOptions ().setDatabase (databasePath).setReplicaMode (ReplicaMode::NONE ));
8888
8989 { // scope
9090 Attachment attachment{CLIENT , databaseUri, attachmentOptions};
You can’t perform that action at this time.
0 commit comments