T2::Attribute - an Attribute of a T2::Class


T2 documentation  | view source Contained in the T2 distribution.

Index


NAME

Top

T2::Attribute - an Attribute of a T2::Class

SYNOPSIS

Top

  $class->attributes_insert
      ( T2::Attribute->new
           ( name => "myatt",
             type => "int",
             options => { sql => "TINYINT" }, ) );

DESCRIPTION

Top

A T2::Attribute is an end-point in the T2 schema. It is typically mapped to a single column.

The following types are available:

string
int
real
date
rawdatetime
rawdate
rawtime
flat_array
dmdatetime
flat_hash
perl_dump

See Tangram::Type for more information.

$assoc->traverse(sub { })

Traverses over every object in the attribute, setting $_[0] to the item.


T2 documentation  | view source Contained in the T2 distribution.