🐙❄️ Spawnflake
Spawnflake generates random data and/or based on patterns for relational databases. This is still in its early stages. These are the supported features so far (0.1.5):
- db support
- mysql
- supports simple foreign key relationships (non unique foreign keys, int)
- supports random data generator for the following types
- varchar (partial support, generates up to 5 characters)
- int
- smallint
- tinyint
- mediumint
- bigint
- decimal (partial support, generates integers)
- float (partial support,no decimals)
- double (partial support,no decimals)
- datetime
- supports pattern based generated random data (config.json)
- varchar
- integer
breaking changes
- 0.1.1 configuration is not backwards compatible with 0.1.0
- 0.1.3 uses the schema from the configuration and does not allow a custom value
Running the example
Running the example requires to run docker-compose inside the test folder. Obviously you need
- docker
- an sql client/ or a way to access the mysql cli (so as to see the generated records)
- cargo run --example generate
Contributing
You are more than welcome. All you need to do is a pull request