@@ -84,7 +84,7 @@ namespace fbcpp
8484 // /
8585 // / Represents options used to run a database maintenance operation through the service manager.
8686 // /
87- class MaintenanceOptions final
87+ class DatabaseRepairOptions final
8888 {
8989 public:
9090 // /
@@ -98,7 +98,7 @@ namespace fbcpp
9898 // /
9999 // / Sets the database path to be maintained.
100100 // /
101- MaintenanceOptions & setDatabase (const std::string& value)
101+ DatabaseRepairOptions & setDatabase (const std::string& value)
102102 {
103103 database = value;
104104 return *this ;
@@ -115,7 +115,7 @@ namespace fbcpp
115115 // /
116116 // / Sets the verbose output callback.
117117 // /
118- MaintenanceOptions & setVerboseOutput (ServiceManager::VerboseOutput value)
118+ DatabaseRepairOptions & setVerboseOutput (ServiceManager::VerboseOutput value)
119119 {
120120 verboseOutput = std::move (value);
121121 return *this ;
@@ -132,7 +132,7 @@ namespace fbcpp
132132 // /
133133 // / Sets the requested number of parallel workers.
134134 // /
135- MaintenanceOptions & setParallelWorkers (std::uint32_t value)
135+ DatabaseRepairOptions & setParallelWorkers (std::uint32_t value)
136136 {
137137 parallelWorkers = value;
138138 return *this ;
@@ -149,7 +149,7 @@ namespace fbcpp
149149 // /
150150 // / Sets whether database sweep is enabled.
151151 // /
152- MaintenanceOptions & setSweep (bool value)
152+ DatabaseRepairOptions & setSweep (bool value)
153153 {
154154 sweep = value;
155155 return *this ;
@@ -166,7 +166,7 @@ namespace fbcpp
166166 // /
167167 // / Sets whether database validation is enabled.
168168 // /
169- MaintenanceOptions & setValidate (bool value)
169+ DatabaseRepairOptions & setValidate (bool value)
170170 {
171171 validate = value;
172172 return *this ;
@@ -183,7 +183,7 @@ namespace fbcpp
183183 // /
184184 // / Sets whether database mending is enabled.
185185 // /
186- MaintenanceOptions & setMend (bool value)
186+ DatabaseRepairOptions & setMend (bool value)
187187 {
188188 mend = value;
189189 return *this ;
@@ -200,7 +200,7 @@ namespace fbcpp
200200 // /
201201 // / Sets whether checksum verification is ignored.
202202 // /
203- MaintenanceOptions & setIgnoreChecksum (bool value)
203+ DatabaseRepairOptions & setIgnoreChecksum (bool value)
204204 {
205205 ignoreChecksum = value;
206206 return *this ;
@@ -217,7 +217,7 @@ namespace fbcpp
217217 // /
218218 // / Sets whether killing database shadows is enabled.
219219 // /
220- MaintenanceOptions & setKillShadows (bool value)
220+ DatabaseRepairOptions & setKillShadows (bool value)
221221 {
222222 killShadows = value;
223223 return *this ;
@@ -234,7 +234,7 @@ namespace fbcpp
234234 // /
235235 // / Sets whether full validation is enabled.
236236 // /
237- MaintenanceOptions & setFull (bool value)
237+ DatabaseRepairOptions & setFull (bool value)
238238 {
239239 full = value;
240240 return *this ;
@@ -251,7 +251,7 @@ namespace fbcpp
251251 // /
252252 // / Sets whether checking only metadata/structure is enabled.
253253 // /
254- MaintenanceOptions & setCheckDb (bool value)
254+ DatabaseRepairOptions & setCheckDb (bool value)
255255 {
256256 checkDb = value;
257257 return *this ;
@@ -268,7 +268,7 @@ namespace fbcpp
268268 // /
269269 // / Sets whether recreating ICU indexes is enabled.
270270 // /
271- MaintenanceOptions & setIcu (bool value)
271+ DatabaseRepairOptions & setIcu (bool value)
272272 {
273273 icu = value;
274274 return *this ;
@@ -285,7 +285,7 @@ namespace fbcpp
285285 // /
286286 // / Sets whether database upgrade is enabled.
287287 // /
288- MaintenanceOptions & setUpgradeDb (bool value)
288+ DatabaseRepairOptions & setUpgradeDb (bool value)
289289 {
290290 upgradeDb = value;
291291 return *this ;
@@ -323,7 +323,7 @@ namespace fbcpp
323323 // /
324324 // / Runs a maintenance or repair operation using the provided options.
325325 // /
326- void execute (const MaintenanceOptions & options);
326+ void execute (const DatabaseRepairOptions & options);
327327 };
328328} // namespace fbcpp
329329
0 commit comments