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

NAME

DBIx::DBO2::Column - Struct for database column info

SYNOPSIS

  my $col = DBIx::DBO2::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::DBO2::Column objects hold information about columns in a database table or query result.

They are generally contained in a DBIx::DBO2::ColumnSet.

PUBLIC INTERFACE

Constructor

Multiple subclasses based on type.

new - Template::Hash:new
type - Template::ClassName:subclass_name

Attributes

These methods are available for all types of 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

VERSION

2001-06-27 Moved to DBIx::DBO2:: namespace. Switched to Class::MakeMethods

2001-01-29 Added boolean required to store whether column is nullable.

2000-11-29 Switched to use of Class::MethodMaker 2.0 features.

1999-07-27 Simon: Created.

AUTHORS

Developed by Evolution Online Systems:

  M. Simon Cavalletto, simonm@evolution.com

LICENSE

This module is free software. It may be used, redistributed and/or modified under the same terms as Perl.

Copyright (c) 1999, 2000, 2001 Evolution Online Systems, Inc.