Repository navigation
v0.1.0
The first version: a sample of a MySQL database, written to a SQL file, with every reference intact.
Added
- Samplers in YAML, each picking rows from one table with
where,order_byandlimit. A table can have as many
samplers as you like; its rows are each written once. of, to take only the rows that belong to rows already in the sample.deps, to bring along every row a table's rows point at, including rows that were themselves brought along.name, so anofcan follow one sampler's rows instead of its whole table's.- Cycles. Tables that lead to each other, or to themselves, are extracted in rounds until nothing new turns up.
time_columnand--since, so one config gives each environment its own size:--since '2 weeks',
--since '3 months', or--since ever.--sinceis required once any sampler has atime_column.--plan, which prints every table in run order with the queries its samplers will send, without connecting.- Several config files at once, with glob patterns tapas expands itself,
**included. - Parallel extraction. Independent tables, samplers and
IN (...)chunks all run at once, up to--connections. - A SQL file you can trust. It's written to
<file>.partialand only renamed once the whole sample worked, with
foreign-key checks off so it loads in any order. - Read-only connections to the source, set up from
--sourceorTAPAS_SOURCE_URL. - Clear errors. Unknown keys, missing parents, name clashes and conflicting
depsare caught before anything runs,
and every error names the file and sampler it came from.