pub struct EmitArgs {
pub to: Option<DialectId>,
pub encoding: Encoding,
pub input: Option<PathBuf>,
pub examples: bool,
}Fields§
§to: Option<DialectId>Target SQL dialect. Defaults to the dialect recorded in the JSON envelope.
Accepted values: same as parse --from. Override the envelope’s
dialect to render the same AST in a different dialect (note: this
does not run translation rewrites — for that use
sqlt translate).
encoding: EncodingEncoding of the SQL output bytes.
JSON input is always read as UTF-8. This flag selects how the SQL bytes are encoded on the way out, so you can write back to a Latin-1 system unchanged.
input: Option<PathBuf>Input file path. Use - or omit to read from stdin.
examples: boolPrint in-depth examples for this subcommand and exit.
Trait Implementations§
Source§impl Args for EmitArgs
impl Args for EmitArgs
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 FromArgMatches for EmitArgs
impl FromArgMatches for EmitArgs
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.Auto Trait Implementations§
impl Freeze for EmitArgs
impl RefUnwindSafe for EmitArgs
impl Send for EmitArgs
impl Sync for EmitArgs
impl Unpin for EmitArgs
impl UnsafeUnpin for EmitArgs
impl UnwindSafe for EmitArgs
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