Expand description
§Spawnflake
Spawnflake is a schema agnostic, random and/or patterns based data generator, for MySQL databases.
This library works by providing a configuration file (config.json). The configuration is divided into two sections.
- mysql configuration (mysql_configuration)
- type patterns (types)
The types that can be currently defined are string, integer and float
A type is defined as follows:
{
"name": "column_name",
"rules": []
}
A lack of a pattern type will result in a random value being generated.
See the example configuration file for more information
Modules§
- byte_
generator - generates bytes
- configuration
- This module allows you to configure your generators
- datastores
- Database functionality
- date_
generator - generates random dates from 1970 to now
- name_
generator - generates name based on patterns
- number_
generator - generates random numbers
- string_
generator - generates random strings
Macros§
- random_
number - macro that generates a random number regardless the type