pub struct ImportArgs {
pub file: Option<PathBuf>,
pub table: Option<String>,
pub batch_size: Option<usize>,
pub resume_from: Option<u64>,
pub separator: Option<char>,
pub header: bool,
pub on_error: Option<OnError>,
}Expand description
Loading a tabular file.
The file is opened by the caller and never by the server, so the server’s file privilege is not involved. Batches commit as they go and the resume mark tells where to continue after an interruption.
Fields§
§file: Option<PathBuf>File to read.
Optional to the argument layer and required to the command, for the
reason given on ExportArgs::to.
table: Option<String>Table to load into.
Optional to the argument layer and required to the command, for the same reason as the file.
batch_size: Option<usize>Rows per committed batch; defaults to the stored key.
resume_from: Option<u64>Continue from this row offset.
separator: Option<char>Field separator of the file.
header: boolThe file carries a header row.
on_error: Option<OnError>What a refused row does to the rest of the load.
Defaults to the stored data.stop_on_refusal, so a host that has
decided once does not decide again on every invocation.
Trait Implementations§
Source§impl Args for ImportArgs
impl Args for ImportArgs
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 Clone for ImportArgs
impl Clone for ImportArgs
Source§impl Debug for ImportArgs
impl Debug for ImportArgs
Source§impl FromArgMatches for ImportArgs
impl FromArgMatches for ImportArgs
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.