Expand description
Shard command for extracting tenant-specific data from SQL dumps.
The shard command extracts data belonging to a specific tenant by:
- Identifying tables with the tenant column (tenant roots)
- Following FK chains to include dependent data
- Including junction/pivot tables where any FK matches tenant data
- Optionally including global/lookup tables
Supports MySQL, PostgreSQL, and SQLite dialects.
Structs§
- Default
Shard Classifier - Default patterns for table classification when no config file provided
- Shard
Config - Configuration for the shard command
- Shard
Stats - Statistics from shard operation
- Shard
Yaml Config - Complete YAML configuration for shard command
- Table
Shard Stats - Per-table sharding statistics
Enums§
- Global
Table Mode - How to handle global/lookup tables during sharding
- Shard
Table Classification - Table classification for sharding behavior
Functions§
- run
- Run the shard command