GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::SQLENGINE::SCHEMA::COLUMN (3)

.ds Aq ’

NAME

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

CONTENTS

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.

    Constructor

new()


  DBIx::SQLEngine::Schema::Column->new() : $column



Constructor.

new_from_hash


  DBIx::SQLEngine::Schema::Column->new( %attrs ) : $column



Constructor.

    Accessors

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


  $column->name() : $name
  $column->name( $name )



Basic string accessor.

required


  $column->required() : $flag
  $column->required( $flag )



Basic boolean accessor.

    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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SQLENGINE::SCHEMA::COLUMN (3) 2004-11-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.