pub struct OptimizeArgs {
pub json: bool,
pub db: Option<String>,
pub skip_fts: bool,
pub fts_skip_when_functional: bool,
pub fts_dry_run: bool,
pub fts_progress: u64,
pub yes: bool,
}Expand description
Optimize args.
Fields§
§json: boolEmit machine-readable JSON on stdout.
db: Option<String>Path to the SQLite database file.
skip_fts: boolSkip FTS.
fts_skip_when_functional: boolWhen true (default), the FTS5 rebuild step is skipped when
fts check reports the index is already functional. Saves 5-15
minutes on large databases. Set to false to always rebuild.
fts_dry_run: boolG36 Step 2 (v1.0.69): run fts check + fts stats only, do not
trigger any rebuild. Exit code is 0 when the index is healthy, 1
when a rebuild would be recommended.
fts_progress: u64G36 Step 3 (v1.0.69): emit a tracing::info! progress line every
N seconds during the FTS5 rebuild. The FTS5 rebuild command is
synchronous and does not call the SQLite progress handler, so the
progress is sampled at the configured interval. Use 0 to disable.
yes: boolG36 Step 4 (v1.0.69): skip all confirmation prompts. Required
for non-interactive CI/CD pipelines that cannot answer y/N.
Trait Implementations§
Source§impl Args for OptimizeArgs
impl Args for OptimizeArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for OptimizeArgs
impl FromArgMatches for OptimizeArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for OptimizeArgs
impl RefUnwindSafe for OptimizeArgs
impl Send for OptimizeArgs
impl Sync for OptimizeArgs
impl Unpin for OptimizeArgs
impl UnsafeUnpin for OptimizeArgs
impl UnwindSafe for OptimizeArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more