pub struct Args {Show 15 fields
pub qualified: bool,
pub table_name: Option<String>,
pub out_dir: PathBuf,
pub files_count: u32,
pub inserts_count: u32,
pub rows_count: u32,
pub last_file_inserts_count: Option<u32>,
pub last_insert_rows_count: Option<u32>,
pub escape_backslash: bool,
pub template: PathBuf,
pub seed: Option<<StdRng as SeedableRng>::Seed>,
pub jobs: usize,
pub rng: RngName,
pub quiet: bool,
pub time_zone: Tz,
}
Expand description
Arguments to the dbgen
CLI program.
Fields
qualified: bool
Keep the qualified name when writing the SQL statements.
table_name: Option<String>
Override the table name.
out_dir: PathBuf
Output directory.
files_count: u32
Number of files to generate.
inserts_count: u32
Number of INSERT statements per file.
rows_count: u32
Number of rows per INSERT statement.
last_file_inserts_count: Option<u32>
Number of INSERT statements in the last file.
last_insert_rows_count: Option<u32>
Number of rows of the last INSERT statement of the last file.
escape_backslash: bool
Do not escape backslashes when writing a string.
template: PathBuf
Generation template file.
seed: Option<<StdRng as SeedableRng>::Seed>
Random number generator seed.
jobs: usize
Number of jobs to run in parallel, default to number of CPUs.
rng: RngName
Random number generator engine
quiet: bool
Disable progress bar.
time_zone: Tz
Timezone
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Argswhere
Args: Default,
impl<'de> Deserialize<'de> for Argswhere
Args: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl StructOpt for Args
impl StructOpt for Args
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Creates the struct from
clap::ArgMatches
. It cannot fail
with a parameter generated by clap
by construction. Read moresourcefn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Gets the struct from the command line arguments. Print the
error message and quit the program in case of failure. Read more
sourcefn from_iter<I>(iter: I) -> Selfwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter<I>(iter: I) -> Selfwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read moresourcefn from_iter_safe<I>(iter: I) -> Result<Self, Error>where
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making. Read moreAuto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more