Skip to main content

Module sample

Module sample 

Source
Expand description

Sample command for creating reduced datasets from SQL dumps.

The sample command creates reduced datasets while optionally preserving foreign key integrity through dependency-aware FK chain resolution.

Supports MySQL, PostgreSQL, and SQLite dialects.

Structs§

DefaultClassifier
Default patterns for table classification (used when no config file)
Reservoir
Reservoir sampler using Algorithm R.
SampleConfig
Configuration for the sample command
SampleStats
Statistics from sample operation
SampleYamlConfig
Complete YAML configuration for sample command
TableSampleStats
Per-table sampling statistics

Enums§

GlobalTableMode
How to handle global/lookup tables
SampleMode
Sampling mode
TableClassification
Table classification for sampling behavior

Functions§

run
Run the sample command