1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # 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:
//!
//! ```json
//! {
//!     "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

/// This module allows you to configure your generators
/// * The optional reader
/// * The model for setting up your project configuration
pub mod configuration;

/// Database functionality
pub mod datastores;
/// generates name based on patterns
pub mod name_generator;

/// generates random numbers
pub mod number_generator;

/// generates random strings
pub mod string_generator;

/// generates random dates from 1970 to now
pub mod date_generator;

/// generates bytes
pub mod byte_generator;