NAME
DBIx::Table::TestDataGenerator::Randomize - random record selections
DESCRIPTION
Handles random selection of column values in a DBIx::Class context.
SUBROUTINES/METHODS
random_record
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.
AUTHOR
Jose Diaz Seng, <josediazseng at gmx.de>
COPYRIGHT AND LICENSE
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.