DBIx::DBSchema::ColGroup - Column group objects |
DBIx::DBSchema::ColGroup - Column group objects
use DBIx::DBSchema::ColGroup;
$colgroup = new DBIx::DBSchema::ColGroup ( $lol_ref ); $colgroup = new DBIx::DBSchema::ColGroup ( \@lol ); $colgroup = new DBIx::DBSchema::ColGroup ( [ [ 'single_column' ], [ 'multiple_columns', 'another_column', ], ] );
$lol_ref = $colgroup->lol_ref;
@sql_lists = $colgroup->sql_list;
@singles = $colgroup->singles;
DBIx::DBSchema::ColGroup objects represent sets of sets of columns. (IOW a ``list of lists'' - see the perllol manpage.)
For example:
@lol = ( [ 'single_column' ], [ 'multiple_columns', 'another_column', ], );
$colgroup = new DBIx::DBSchema::ColGroup ( \@lol );
print join("\n", $colgroup->sql_list), "\n";
Will print:
single_column multiple_columns, another_column
Ivan Kohler <ivan-dbix-dbschema@420.am>
Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System LLC All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
the DBIx::DBSchema::Table manpage, the DBIx::DBSchema::ColGroup::Unique manpage, the DBIx::DBSchema::ColGroup::Index manpage, the DBIx::DBSchema manpage, the perllol manpage, the perldsc manpage, the DBI manpage
DBIx::DBSchema::ColGroup - Column group objects |