Laurent Dami > DBIx-DataModel > DBIx::DataModel::Meta::Type

Download:
DBIx-DataModel-2.44.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

DBIx::DataModel::Meta::Type - registered collection of column handlers

SYNOPSIS ^

  my $type = DBIx::DataModel::Meta::Type->new(
    schema   => $meta_schema,
    name     => $type_name,
    handlers => {
      $handler_name_1 => sub { ... },
      $handler_name_2 => sub { ... },
      ...
    },
  );

DESCRIPTION ^

A type is just a hashref of handler names and handler bodies (coderefs). The type can then be applied to some columns in some tables through the "define_column_type" in DBIx::DataModel::Doc::Reference method.

syntax highlighting: