pub struct SampleConfig {Show 16 fields
pub input: PathBuf,
pub output: Option<PathBuf>,
pub dialect: SqlDialect,
pub mode: SampleMode,
pub preserve_relations: bool,
pub tables_filter: Option<Vec<String>>,
pub exclude: Vec<String>,
pub root_tables: Vec<String>,
pub include_global: GlobalTableMode,
pub seed: u64,
pub dry_run: bool,
pub progress: bool,
pub config_file: Option<PathBuf>,
pub max_total_rows: Option<usize>,
pub strict_fk: bool,
pub include_schema: bool,
}Expand description
Configuration for the sample command
Fields§
§input: PathBufInput SQL file
output: Option<PathBuf>Output SQL file (None for stdout)
dialect: SqlDialectSQL dialect
mode: SampleModeSampling mode
preserve_relations: boolPreserve foreign key relationships
tables_filter: Option<Vec<String>>Only sample these tables (None = all)
exclude: Vec<String>Exclude these tables
root_tables: Vec<String>Root tables for sampling (start from these)
include_global: GlobalTableModeHow to handle global/lookup tables
seed: u64Random seed for reproducibility
dry_run: boolDry run mode (show stats only)
progress: boolShow progress
config_file: Option<PathBuf>YAML config file path
max_total_rows: Option<usize>Maximum total rows to sample (explosion guard)
strict_fk: boolFail if any FK integrity issues detected
include_schema: boolInclude schema statements in output
Trait Implementations§
Source§impl Debug for SampleConfig
impl Debug for SampleConfig
Auto Trait Implementations§
impl Freeze for SampleConfig
impl RefUnwindSafe for SampleConfig
impl Send for SampleConfig
impl Sync for SampleConfig
impl Unpin for SampleConfig
impl UnwindSafe for SampleConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more