pub struct Cli {Show 14 fields
pub input: PathBuf,
pub out_dir: PathBuf,
pub dialect: Option<String>,
pub force: bool,
pub schema_only: bool,
pub data_only: bool,
pub tables: Option<Vec<String>>,
pub workers: Option<usize>,
pub shard_rows: Option<usize>,
pub no_postgres_ddl: bool,
pub dry_run: bool,
pub null_marker: String,
pub tsv: bool,
pub delimiter: String,
}Expand description
Fast, parallel SQL dump to CSV/TSV converter.
Extracts data from SQL dumps (MySQL, PostgreSQL, SQL Server, Oracle, SQLite) into clean CSV/TSV files — one per table. Optionally generates PostgreSQL DDL. Auto-detects the source dialect, or specify it with –dialect.
Fields§
§input: PathBufInput SQL dump file (.sql or .sql.gz)
out_dir: PathBufOutput directory
dialect: Option<String>Source SQL dialect (auto-detected if not specified)
Supported: mysql, postgresql (pg), mssql (sqlserver), oracle, sqlite
force: boolOverwrite output directory if it already exists
schema_only: boolOnly emit DDL (schema.sql), no data files
data_only: boolOnly emit data files, skip DDL conversion
tables: Option<Vec<String>>Comma-separated allowlist of table names to extract
workers: Option<usize>Number of parallel workers (default: number of CPU cores)
shard_rows: Option<usize>Rotate/shard CSV every N rows per table
no_postgres_ddl: boolDisable DDL conversion (skip schema.sql generation)
dry_run: boolParse and count rows only, without writing output
null_marker: StringNULL marker string for CSV output (default: \N)
tsv: boolOutput TSV (tab-separated) instead of CSV
delimiter: StringCSV delimiter character (ignored if –tsv is set)
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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.