memsql / datafiller

DataFiller - generate random data from database schema
https://www.cri.ensmp.fr/people/coelho/datafiller.html
GNU General Public License v3.0
33 stars 13 forks source link

DataFiller - generate random data from database schema

This is a mirror of https://www.cri.ensmp.fr/people/coelho/datafiller.html. See that site for updated documentation.

DESCRIPTION

This script generates random data from a database schema enriched with simple directives in SQL comments to drive 29 data generators which cover typical data types and their combination. Reasonable defaults are provided, especially based on key and type constraints, so that few directives should be necessary. The minimum setup is to specify the relative size of tables with directive mult so that data generation can be scaled.

See the TUTORIAL section Also, run with --validate=comics or --validate=library and look at the output for didactic examples.

OPTIONS

--debug or -D

--drop

--encoding=enc or -e enc

--filter or -f, reverse with --no-filter

--help or -h

--man or -m

--null RATE or -n RATE

--offset OFFSET or -O OFFSET

--pod COMMAND

--quiet or -q

--seed SEED or -S SEED

--size SIZE

--target (postgresql|mysql) or -t ...

--test='directives...'

--transaction or -T

--tries=NUM

--truncate

--type=CUSTOM

--validate=(unit|internal|comics|library|pgbench)

--version, -v or -V