DBIx::Table::TestDataGenerator::Randomize - random record selections
Handles random selection of column values in a DBIx::Class context.
Arguments:
schema: DBIx schema of the target database
table: Name of a table or name of the corresponding DBIx ResultSource.
colname_list: Reference to an array containing the column names for which values are to be selected randomly.
table_param_is_class_name: If true, the table argument contains the DBIx class name, otherwise the original name of the target table.
Returns a hash where the keys are the column names passed in in the argument colname_list and the corresponding values come from a randomly selected record of the target table.
Jose Diaz Seng, <josediazseng at gmx.de>
<josediazseng at gmx.de>
Copyright (C) 2012-2013, Jose Diaz Seng.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install DBIx::Table::TestDataGenerator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Table::TestDataGenerator
CPAN shell
perl -MCPAN -e shell install DBIx::Table::TestDataGenerator
For more information on module installation, please visit the detailed CPAN module installation guide.