pub struct ShardConfig {Show 13 fields
pub input: PathBuf,
pub output: Option<PathBuf>,
pub dialect: SqlDialect,
pub tenant_column: Option<String>,
pub tenant_value: String,
pub root_tables: Vec<String>,
pub include_global: GlobalTableMode,
pub dry_run: bool,
pub progress: bool,
pub config_file: Option<PathBuf>,
pub max_selected_rows: Option<usize>,
pub strict_fk: bool,
pub include_schema: bool,
}Expand description
Configuration for the shard command
Fields§
§input: PathBufInput SQL file
output: Option<PathBuf>Output SQL file (None for stdout)
dialect: SqlDialectSQL dialect
tenant_column: Option<String>Tenant column name (auto-detected if None)
tenant_value: StringTenant value to extract
root_tables: Vec<String>Explicit root tables (tables that have the tenant column)
include_global: GlobalTableModeHow to handle global/lookup tables
dry_run: boolDry run mode (show stats only)
progress: boolShow progress
config_file: Option<PathBuf>YAML config file path
max_selected_rows: Option<usize>Maximum selected rows (memory guard)
strict_fk: boolFail if any FK integrity issues detected
include_schema: boolInclude schema statements in output
Trait Implementations§
Source§impl Debug for ShardConfig
impl Debug for ShardConfig
Auto Trait Implementations§
impl Freeze for ShardConfig
impl RefUnwindSafe for ShardConfig
impl Send for ShardConfig
impl Sync for ShardConfig
impl Unpin for ShardConfig
impl UnwindSafe for ShardConfig
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