pub struct CancelCommand {
pub account: Option<String>,
pub user: Option<String>,
pub id: Option<u64>,
pub all: bool,
pub member: Option<u64>,
pub socket: Option<PathBuf>,
}Expand description
Cancels (aborts) the running query on a target pool without evicting the session.
Frees the pooled session promptly rather than waiting out
SNOWFLAKE_QUERY_TIMEOUT. Exactly one selector is required — the
--account/--user pair, --id, or --all. --member (a numeric member id
from sessions) narrows the cancel to one authenticated session’s query; it
may not be combined with --all.
Fields§
§account: Option<String>Account of the pool whose query to cancel (requires --user).
user: Option<String>User of the pool whose query to cancel (requires --account).
id: Option<u64>Numeric id of the pool (as shown by sessions).
all: boolCancel the running query on every pool.
member: Option<u64>Numeric member id (from sessions) to cancel a single session’s query
instead of every busy member in the pool. Not valid with --all.
socket: Option<PathBuf>Control-socket path. Defaults to the per-user runtime location.
Implementations§
Trait Implementations§
Source§impl Args for CancelCommand
impl Args for CancelCommand
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 CommandFactory for CancelCommand
impl CommandFactory for CancelCommand
Source§impl FromArgMatches for CancelCommand
impl FromArgMatches for CancelCommand
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.