1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use dbgen::schemagen_cli::{print_script, Args}; use structopt::StructOpt; fn main() { let args = Args::from_args(); print_script(&args); // if let Err(err) = run(args) { // eprintln!("{}\n", err); // for (e, i) in err.iter_causes().zip(1..) { // eprintln!("{:=^80}\n{}\n", format!(" ERROR CAUSE #{} ", i), e); // } // exit(1); // } // let mut rng = thread_rng(); // let table = gen_table(Dialect::MySQL, &mut rng, 1e9); // println!("{}", table.schema); // println!("rows: {}", table.rows_count); }