The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Class::DBI::FormBuilder::Meta::Column

DESCRIPTION

Access to column metadata.

METHODS

new($table, $name, $meta)

Returns a new meta object for the column.

Stringifies to the column's name.

table

Returns the Class::DBI::FormBuilder::Table object associated with this column.

Column attribute accessors

name
order
ordinal_position

Alias for order.

digits
decimal_digits

Alias for digits.

size
column_size

Alias for size.

default
column_def

Alias for default.

nullable
is_nullable
type
type_name

Alias for type.

mysql_values
mysql_type_name
options

Returns the possible values for an enumerated column, and whether the column can store multiple value.

Currently only implemented for MySQL enum (multiple is false) and set (multiple is true) column types, but should be easy to support other databases that offer similar column types.