Class::DBI::Lite::ColumnInfo - Extended meta-information about database table fields.
foreach my $field ( My::User->columns ) { }# end foreach()
Sometimes database table field information needs to be available during runtime.
This class provides a simple interface to query a specific database field.
Returns the name of the column.
Returns the data type of the column - varchar, int, etc.
Returns the size of the field.
True or false.
Returns the default value of the field, if any.
Returns true if the field is a primary key field. False otherwise.
Returns either undef, primary_key or unique.
undef
primary_key
unique
It's possible that some bugs have found their way into this release.
John Drago <jdrago_999@yahoo.com>
http://www.devstack.com/
Copyright 2008 John Drago <jdrago_999@yahoo.com>, All Rights Reserved.
This software is Free software and may be used and redistributed under the same terms as perl itself.
To install Class::DBI::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::DBI::Lite
CPAN shell
perl -MCPAN -e shell install Class::DBI::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.