logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Alzabo::ColumnDefinition - Holds the type attribute for a column

Author

       Dave Rolsky, <autarch@urth.org>

perl v5.34.0                                       2022-06-14                      Alzabo::ColumnDefinition(3pm)

Description

       This object holds information on a column that might need to be shared with another column.  The reason
       for this is that if a column is a key in two or more tables, then some of the information related to that
       column should change automatically for all tables (and all columns) whenever it is changed anywhere.
       Right now this is only type ('VARCHAR', 'NUMBER', etc) information.  This object also has an 'owner',
       which is the column which created it.

Methods

type
       Returns the object's type as a string.

   length
       Returns the length attribute of the column, or undef if there is none.

   precision
       Returns the precision attribute of the column, or undef if there is none.

   owner
       Returns the "Alzabo::Column" object that owns this definitions (the column that created it).

Name

       Alzabo::ColumnDefinition - Holds the type attribute for a column

Synopsis

         my $def = $column->definition;

         print $def->type;

See Also