pub struct PurgeArgs {
pub name: Option<String>,
pub namespace: Option<String>,
pub retention_days: u32,
pub older_than_seconds: Option<u64>,
pub dry_run: bool,
pub yes: bool,
pub json: bool,
pub db: Option<String>,
}Fields§
§name: Option<String>§namespace: Option<String>Namespace to purge. Defaults to the contextual namespace (SQLITE_GRAPHRAG_NAMESPACE env var or “global”).
retention_days: u32Retention days: memories with deleted_at older than (now - retention_days*86400) will be
permanently removed. Default: PURGE_RETENTION_DAYS_DEFAULT (90). Use 0 to purge all
soft-deleted memories regardless of age. Alias: --max-age-days.
older_than_seconds: Option<u64>[DEPRECATED in v2.0.0] Legacy alias — use –retention-days instead.
dry_run: boolDoes not execute DELETE: computes and reports what WOULD be purged.
yes: boolConfirms destructive intent for tools that require explicit acknowledgement.
Does NOT override --retention-days: combine with --retention-days 0 to wipe
every soft-deleted memory regardless of age.
json: bool§db: Option<String>Trait Implementations§
Source§impl Args for PurgeArgs
impl Args for PurgeArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PurgeArgs
impl FromArgMatches for PurgeArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PurgeArgs
impl RefUnwindSafe for PurgeArgs
impl Send for PurgeArgs
impl Sync for PurgeArgs
impl Unpin for PurgeArgs
impl UnsafeUnpin for PurgeArgs
impl UnwindSafe for PurgeArgs
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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