Struct dbgen::cli::Args

source ·
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

Formats the value using the given formatter. Read more

The default implementation of the argument suitable for testing.

Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Returns the corresponding clap::App.
Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more
Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more
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 more
Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.