Alzabo...nition(3pm)
β¨ NAME β¨
okay bestie, welcome to Alzabo::Create::ColumnDefinition β it's the Column definition object for schema creation π
she's a Perl module, she lives in the User Contributed Perl Documentation, section 3pm, and she is so ready to hold your column info for you π«Ά
πΈ SYNOPSIS πΈ
use Alzabo::Create::ColumnDefinition;
that's it. that's the whole vibe. go off π
π DESCRIPTION π
so like. this object holds info about a column that might need to be shared with another column π―ββοΈ and the reason this class even exists is genuinely iconic: if a column is a key in two or more tables, then some of the info about that column should justβ¦ change automatically in all the places whenever it changes at all. like, no manual syncing, she handles it π
right now the only stuff that auto-updates is type ('VARCHAR', 'NUMBER', etc) and length/precision info. that's the whole list, no cap.
this object also has an 'owner', which is literally the column that created it. main character origin story fr π«
π¦ INHERITS FROM π¦
Alzabo::ColumnDefinition
note: all relevant documentation from the superclass has been merged into this document. so you don't have to go hunting, bestie, it's all right here π
π METHODS π
π new
this method takes the following parameters:
owner=>Alzabo::Create::ColumnDefinitionobjecttype=>$type
it returns a brand new Alzabo::Create::ColumnDefinition object. slay β¨
π alter
see the Alzabo::Column->alter() method for details. (she delegates, we love a collaborative queen π«Ά)
π type
returns the object's type as a string.
π set_type ($string)
sets the object's type.
throws: Alzabo::Exception::Params, Alzabo::Exception::RDBMSRules
π 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.
π set_length
this method takes the following parameters:
length=>$lengthprecision=>$precision(optional)
sets the column's length and precision. the precision parameter is optional (though some column types may require it if the length is set π so like, read the room on that one).
throws: Alzabo::Exception::Params, Alzabo::Exception::RDBMSRules
π owner
returns the Alzabo::Create::Column object that owns this definitions (the column that created it). she's got a parent and she knows it π
and that's the whole page, bestie!! this was Alzabo::Create::ColumnDefinition(3pm) from the User Contributed Perl Documentation, and this lil rendering is courtesy of perl v5.34.0, dated 2022-06-14 π go forth and define some columns, you absolute icon ππ
π¦ where this page comes from
- debian bookworm: libalzabo-perl 0.92-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libalzabo-perl 0.92-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libalzabo-perl 0.92-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libalzabo-perl 0.92-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libalzabo-perl 0.92-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms