pub struct DBVerify { /* private fields */ }Expand description
p4 [g-opts] dbverify [-t db.tablename] [-U][-v]
Perform low-level verification of the database tables.
By default, all current tables are verified, which can be computationally
expensive and might require scheduled user downtime on large systems;
Self::table restricts verification to a single table.
Self::less_detailed performs the faster -U validation, which only
looks for tables with non-zero unlock counts and has minimal performance
impact.
Use Self::verbose to request verbose information on the verification.
Implementations§
Source§impl DBVerify
impl DBVerify
Sourcepub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
Creates a new p4 dbverify command.
bin is the path to the Perforce command-line executable.
Sourcepub fn get_global_opts(&self) -> &GlobalOpts
pub fn get_global_opts(&self) -> &GlobalOpts
Sourcepub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
Sourcepub fn global_opts(self, v: GlobalOpts) -> Self
pub fn global_opts(self, v: GlobalOpts) -> Self
Sourcepub fn get_less_detailed(&self) -> bool
pub fn get_less_detailed(&self) -> bool
§Description
-U
Perform a less-detailed validation.
Looks for tables with non-zero unlock counts; the presence of a non-zero unlock count does not positively indicate corruption (and a zero unlock count does not guarantee data integrity), but this check has minimal performance impact.
Sourcepub fn set_less_detailed(&mut self, v: bool) -> &mut Self
pub fn set_less_detailed(&mut self, v: bool) -> &mut Self
§Description
-U
Perform a less-detailed validation.
Looks for tables with non-zero unlock counts; the presence of a non-zero unlock count does not positively indicate corruption (and a zero unlock count does not guarantee data integrity), but this check has minimal performance impact.
Sourcepub fn less_detailed(self, v: bool) -> Self
pub fn less_detailed(self, v: bool) -> Self
§Description
-U
Perform a less-detailed validation.
Looks for tables with non-zero unlock counts; the presence of a non-zero unlock count does not positively indicate corruption (and a zero unlock count does not guarantee data integrity), but this check has minimal performance impact.