dev-master
9999999-devRandomize DB columns
The Requires
- php >=5.6
- symfony/yaml ^3.4
The Development Requires
1.0.0
1.0.0.0Randomize DB columns
The Requires
- php >=5.6
- symfony/yaml ^3.4
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Randomize DB columns
Simply DB data randomize., (*1)
git clone git@github.com:xixaoly/Randomizer.gitcd Randomizercomposer updateCreate example.yml file with schema declaration and run php cli/randomizer.php example.yml, (*2)
Include composer autoload (like require 'vendor/autoload.php'), create Job and handle it, (*3)
<?php
use Randomizer\Randomizer;
$randomizer = new Randomizer;
$job = $randomizer->createJobFromFile($path);
try {
$randomizer->install($job);
$randomizer->run($job);
$randomizer->uninstall($job);
} catch (Exception $e) {
$randomizer->uninstall($job);
}
connection:
dns: mysql:dbname=randomizer;host=127.0.0.1
name: root
password: example
options:
defaultClass:
class: Randomizer\Database\Mysql\Method\RandomString
schema:
table1:
colm1:
class: Randomizer\Database\Mysql\Method\RandomNumber
arguments:
min: 10
max: 20
colm2:
class: Randomizer\Database\Mysql\Method\RandomString
colm3:
Randomize DB columns
Randomize DB columns