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

πŸ’– Alzabo::ColumnDefinition πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation section of the manual, and it's all about Alzabo::ColumnDefinition β€” the little guy that holds the type attribute for a column. it's giving ✨shared destiny✨ but for database columns. let's get into it 🫢


🌸 NAME 🌸

Alzabo::ColumnDefinition β€” holds the type attribute for a column. that's it, that's the whole job, and it does it flawlessly πŸ’…


✨ SYNOPSIS ✨

my $def = $column->definition;

print $def->type;

literally two lines and you're already slaying. grab the definition off the column, print its type, done πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it's actually kind of iconic: this object holds information on a column that might need to be shared with another column.

why, you ask? because if a column is a key in two or more tables, then some of the info related to that column should change automatically for all tables (and all columns) whenever it's changed anywhere. like, one glow-up, everybody glows up. no cap 🌈

right now, that shared info is only type info ('VARCHAR', 'NUMBER', etc). that's the only thing riding the group chat currently.

this object also has an owner, which is the column which created it. every definition has a parent, and the parent is the one who made it. periodt πŸ‘‘


πŸ’… METHODS πŸ’…

🌟 type

returns the object's type as a string. simple. iconic. no notes ✨

🌟 length

returns the length attribute of the column, or undef if there is none. if it's not there, it's just undef, bestie β€” don't come for it 😭

🌟 precision

returns the precision attribute of the column, or undef if there is none. same energy, different attribute πŸŽ€

🌟 owner

returns the Alzabo::Column object that owns this definition (aka the column that created it). it's giving main character energy β€” every definition has a maker 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky, <autarch@urth.org>. we stan a legend πŸ₯°


okay that's the whole page, no crumbs left behind, every option and method accounted for πŸ’–

this was perl v5.34.0, dated 2022-06-14, from the User Contributed Perl Documentation corner of the universe β€” mwah, go forth and define your columns, bestie πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from