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

NAME

Class::DBI::FormBuilder::Meta::Table

DESCRIPTION

Access to column metadata.

METHODS

instance( $cdbi, %args )

Returns an instance for the $cdbi class ($cdbi can be a class name or object).

The %args hash is optional. Keys can be catalog and schema, which are also available as accessors. Both default to undef.

catalog

Get/set the catalog.

schema

Get/set the schema.

dbh

Get/set the DBI database handle (you probably don't want to set it).

cdbi_class

Get/set the CDBI class (you probably don't want to set it).

column_deep_type( $field )

Returns the type of the field. If $field refers to a relationship (e.g. has_many or might_have), returns the type of the column in the related table.

column( $col_name )

If $col_name is a column in this class, returns a Class::DBI::FormBuilder::Meta::Column object for that column. Otherwise, returns undef.

columns()

Returns Class::DBI::Column objects, in the same order as defined in the database.