Matthew Simon Cavalletto

NAME

DBIx::SQLEngine::Schema::Column - Struct for database column info

SYNOPSIS

  my $col = DBIx::SQLEngine::Schema::Column->new( 
    name=>$colname, type=>$typename   
  );
  
  print $col->name;
  
  if ( $col->type eq 'text' ) {
    print "text, length " . $col->length;
  } else {
    print $col->type;
  }

DESCRIPTION

DBIx::SQLEngine::Schema::Column objects are very simple structures that hold information about columns in a database table or query result.

They are generally contained in a DBIx::SQLEngine::Schema::ColumnSet.

REFERENCE

These methods are available for all types of column.

new - Template::Hash:new

Constructor

type - Template::ClassName:subclass_name

Dynamically reblesses instances into different subclasses of DBIx::SQLEngine::Schema::Column.

name - Template::Hash:string
required - Template::Hash:boolean

text Attributes

These methods are only available for columns of type text.

length - Template::Hash:number

SEE ALSO

See DBIx::SQLEngine for the overall interface and developer documentation.

See DBIx::SQLEngine::Docs::ReadMe for general information about this distribution, including installation and license information.