NAME

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

SYNOPSIS

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

DESCRIPTION

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.