[][src]Struct dbgen::cli::Args

pub struct Args {
    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,
    pub format: FormatName,
    pub compression: Option<CompressionName>,
    pub compress_level: u8,
}

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

format: FormatName

Output format

compression: Option<CompressionName>

Output compression

compress_level: u8

Output compression level

Trait Implementations

impl Default for Args[src]

The default implementation of the argument suitable for testing.

impl Debug for Args[src]

impl<'de> Deserialize<'de> for Args where
    Args: Default
[src]

impl StructOpt for Args[src]

default fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

default fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

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

default fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for Args

impl Sync for Args

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]