pub enum Commands {
Show 14 variants
Split {
file: PathBuf,
output: PathBuf,
dialect: Option<String>,
tables: Option<String>,
schema_only: bool,
data_only: bool,
verbose: bool,
progress: bool,
json: bool,
dry_run: bool,
fail_fast: bool,
},
Analyze {
file: PathBuf,
dialect: Option<String>,
progress: bool,
json: bool,
fail_fast: bool,
},
Merge {
input_dir: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
tables: Option<String>,
exclude: Option<String>,
transaction: bool,
no_header: bool,
progress: bool,
json: bool,
dry_run: bool,
},
Sample {Show 19 fields
file: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
config: Option<PathBuf>,
percent: Option<u32>,
rows: Option<usize>,
seed: Option<u64>,
tables: Option<String>,
exclude: Option<String>,
root_tables: Option<String>,
include_global: Option<String>,
preserve_relations: bool,
strict_fk: bool,
no_schema: bool,
max_total_rows: Option<usize>,
no_limit: bool,
progress: bool,
json: bool,
dry_run: bool,
},
Shard {Show 16 fields
file: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
config: Option<PathBuf>,
tenant_column: Option<String>,
tenant_value: Option<String>,
tenant_values: Option<String>,
root_tables: Option<String>,
include_global: Option<String>,
strict_fk: bool,
no_schema: bool,
max_selected_rows: Option<usize>,
no_limit: bool,
progress: bool,
json: bool,
dry_run: bool,
},
Convert {
file: PathBuf,
output: Option<PathBuf>,
from: Option<String>,
to: String,
strict: bool,
progress: bool,
json: bool,
dry_run: bool,
fail_fast: bool,
},
Validate {
file: PathBuf,
dialect: Option<String>,
strict: bool,
no_fk_checks: bool,
fail_fast: bool,
max_rows_per_table: usize,
no_limit: bool,
progress: bool,
json: bool,
},
Diff {Show 16 fields
old_file: PathBuf,
new_file: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
tables: Option<String>,
exclude: Option<String>,
ignore_columns: Option<String>,
schema_only: bool,
data_only: bool,
primary_key: Option<String>,
allow_no_pk: bool,
ignore_order: bool,
max_pk_entries: usize,
format: Option<String>,
verbose: bool,
progress: bool,
},
Redact {Show 19 fields
file: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
config: Option<PathBuf>,
generate_config: bool,
null: Vec<String>,
hash: Vec<String>,
fake: Vec<String>,
mask: Vec<String>,
constant: Vec<String>,
seed: Option<u64>,
locale: String,
tables: Vec<String>,
exclude: Vec<String>,
strict: bool,
progress: bool,
dry_run: bool,
json: bool,
validate: bool,
},
Graph {Show 15 fields
file: PathBuf,
output: Option<PathBuf>,
format: Option<String>,
dialect: Option<String>,
layout: Option<String>,
cycles_only: bool,
table: Option<String>,
transitive: bool,
reverse: bool,
tables: Option<String>,
exclude: Option<String>,
max_depth: Option<usize>,
render: bool,
progress: bool,
json: bool,
},
Order {
file: PathBuf,
output: Option<PathBuf>,
dialect: Option<String>,
check: bool,
dry_run: bool,
reverse: bool,
},
Query(QueryArgs),
Schema {
output: PathBuf,
command: Option<String>,
stdout: bool,
list: bool,
},
Completions {
shell: Shell,
},
}Variants§
Split
Split a SQL dump into individual table files
Fields
Analyze
Analyze a SQL dump and display table statistics
Fields
Merge
Merge split SQL files back into a single dump
Fields
Sample
Create a reduced dataset preserving FK relationships
Fields
Shard
Extract tenant-specific data from a multi-tenant dump
Fields
Convert
Convert a SQL dump between MySQL, PostgreSQL, and SQLite
Fields
Validate
Validate SQL dump syntax, encoding, and data integrity
Fields
Diff
Compare two SQL dumps and report schema + data differences
Fields
Redact
Redact sensitive data (PII) from SQL dumps
Fields
Graph
Generate Entity Relationship Diagram (ERD) from SQL dump
Fields
Order
Output SQL dump with tables in topological FK order
Fields
Query(QueryArgs)
Query SQL dumps using DuckDB’s analytical engine
Schema
Generate JSON schemas for –json output types (developer tool)
Fields
Completions
Generate shell completion scripts
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more