Why not adopt me?
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 becatalog
andschema
, which are also available as accessors. Both default toundef
. - 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
ormight_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, returnsundef
. - columns()
-
Returns Class::DBI::Column objects, in the same order as defined in the database.