Enum ibr::Commands

source ·
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

§index: bool

List index data

§segment: bool

List segment data

§extent: bool

List extent data

§page: bool

List page data

§all: bool

List all: index, segment, extent, page, …

§limit: usize

Limit the total data rows

§

Desc

Describe datafile information by sdi page

§

Sdi

Print SDI json

Fields

§table_define: bool

Print parsed table definition

§root_segments: bool

Print index root segements

§

View

View page data with given page_no.

Fields

§page_no: usize

The page number, starts from 0.

§

Dump

Dump index page user records

Fields

§page_no: Option<usize>

The page number, starts from 0.

§limit: usize

Limit the total row in the dump

§garbage: bool

Dump the garbage list

§verbose: bool

Print more information

§btree_root: Option<usize>

Dump the B+ tree root

§

Undo

Undo log print

Fields

§page_no: usize

The page number, starts from 0.

§boffset: usize

The byte offset inside page

§n_uniq: usize

Number of unique keys, default value is 1.

§

Redo

Redo log print

Fields

§block_no: Option<usize>

The block number, starts from 0.

§dump_log_type: Option<LogRecordTypes>

Dump given log_type redo blocks, log_type like MLOG_xxx, MLOG_1BYTE, MLOG_REC_INSERT …

Trait Implementations§

source§

impl Debug for Commands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Commands

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

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>

Assign values from ArgMatches to self.
source§

impl Subcommand for Commands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.