Crate spawnflake

Source
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