pub(crate) enum Commands {
Info,
List {
index: bool,
segment: bool,
extent: bool,
page: bool,
all: bool,
limit: usize,
},
Desc,
Sdi {
table_define: bool,
root_segments: bool,
},
View {
page_no: usize,
},
Dump {
page_no: Option<usize>,
limit: usize,
garbage: bool,
verbose: bool,
btree_root: Option<usize>,
},
Undo {
page_no: usize,
boffset: usize,
n_uniq: usize,
},
Redo {
block_no: Option<usize>,
dump_log_type: Option<LogRecordTypes>,
},
}
Variants§
Info
Print basic information.
List
List all page. page_type, page_number and more
Fields
Desc
Describe datafile information by sdi page
Sdi
Print SDI json
Fields
View
View page data with given page_no.
Dump
Dump index page user records
Fields
Undo
Undo log print
Fields
Redo
Redo log print
Trait Implementations§
source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Subcommand for Commands
impl Subcommand for Commands
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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