pub enum QueryCommand {
Run(RunArgs),
Sample(SampleArgs),
Explain(ExplainArgs),
Analyze(StatementArgs),
Plan(PlanArgs),
Lineage(StatementArgs),
File(FileArgs),
Tx(TxArgs),
Call(CallArgs),
Named(NamedArgs),
}Expand description
The ten query commands.
Variants§
Run(RunArgs)
Run a read or a change, according to the classification.
Sample(SampleArgs)
Sample the first rows of a table.
Explain(ExplainArgs)
Plan without executing, with optimiser reasoning on demand.
Analyze(StatementArgs)
Real measurement, treated as a change because it executes.
Plan(PlanArgs)
Plan of a statement already running.
Lineage(StatementArgs)
Physical origin of the result columns.
File(FileArgs)
Run a file of statements.
Tx(TxArgs)
Group statements in one atomic block.
Call(CallArgs)
Call a stored routine and return its output parameters.
Named(NamedArgs)
Store and run a named statement with typed parameters.
Implementations§
Source§impl QueryCommand
impl QueryCommand
Sourcepub const fn published_name(&self) -> &'static str
pub const fn published_name(&self) -> &'static str
The published name of this query command.
Trait Implementations§
Source§impl Clone for QueryCommand
impl Clone for QueryCommand
Source§impl Debug for QueryCommand
impl Debug for QueryCommand
Source§impl FromArgMatches for QueryCommand
impl FromArgMatches for QueryCommand
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 QueryCommand
impl Subcommand for QueryCommand
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§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 QueryCommand
impl RefUnwindSafe for QueryCommand
impl Send for QueryCommand
impl Sync for QueryCommand
impl Unpin for QueryCommand
impl UnsafeUnpin for QueryCommand
impl UnwindSafe for QueryCommand
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