Alzabo...nition(3pm)

πŸ“¦
version 0.92 Β· 2 versions
  • 0.92 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.92 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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::ColumnDefinition object
  • type => $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 => $length
  • precision => $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