David R. Baird > Class-DBI-FormBuilder > Class::DBI::FormBuilder::Meta::Table

Download:
Class-DBI-FormBuilder-0.481.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  2
View/Report Bugs
Source  

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.

related_class_and_rel_type( $field )
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.

syntax highlighting: