pub struct QueryCommand {
pub account: Option<String>,
pub user: Option<String>,
pub warehouse: Option<String>,
pub role: Option<String>,
pub database: Option<String>,
pub schema: Option<String>,
pub socket: Option<PathBuf>,
pub output: OutputFormat,
pub format: Option<OutputFormat>,
pub sql: Option<String>,
}Expand description
Runs arbitrary SQL through the (account, user) session, authenticating it
on first use (a browser may open for sign-in).
Fields§
§account: Option<String>Target account. Falls back to SNOWFLAKE_ACCOUNT / settings.json.
user: Option<String>Authenticating user. Falls back to SNOWFLAKE_USER / settings.json.
warehouse: Option<String>Per-query warehouse (USE WAREHOUSE).
role: Option<String>Per-query role (USE ROLE).
database: Option<String>Per-query database (USE DATABASE).
schema: Option<String>Per-query schema (USE SCHEMA).
socket: Option<PathBuf>Control-socket path. Defaults to the per-user runtime location.
output: OutputFormatOutput format.
format: Option<OutputFormat>Deprecated: use -o/--output instead.
sql: Option<String>SQL to run. Read from stdin when omitted.
Implementations§
Trait Implementations§
Source§impl Args for QueryCommand
impl Args for QueryCommand
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 CommandFactory for QueryCommand
impl CommandFactory 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(
&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.Source§impl Parser for QueryCommand
impl Parser for QueryCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto 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