Rose::...::Enum(3pm)
π Rose::DB::Object::Metadata::Column::Enum
okay so this is the Rose::...::Enum(3pm) page, straight out of the User Contributed Perl Documentation, and bestie it's literally about enumerated column metadata π don't worry, we're gonna get through it together and it's gonna slay.
β¨ NAME β¨
Rose::DB::Object::Metadata::Column::Enum β enumerated column metadata. that's the whole name, she's long but she's iconic π
πΈ SYNOPSIS πΈ
use Rose::DB::Object::Metadata::Column::Enum;
$col = Rose::DB::Object::Metadata::Column::Enum->new(...);
$col->make_methods(...);
...
see how chill that is? new one up, make some methods, dots because there's more and we're not gonna list it all π
π¦ DESCRIPTION π¦
Objects of this class store and manipulate metadata for enum columns. like, that's their whole personality and honestly? respect.
Column metadata objects store info about columns β data type, size, etc. β and they're the ones responsible for creating object methods that manipulate column values. main character energy fr fr π
so what even is an enum column? it's a column that accepts a restricted set of string values, and those strings are usually stored as sequential integers in the database. cute little ints cosplaying as words, we love a disguise π
this class inherits from Rose::DB::Object::Metadata::Column::Scalar. inherited methods that aren't overridden won't be documented a second time here β no point repeating ourselves, we're not that kind of girl. go read the Rose::DB::Object::Metadata::Column::Scalar documentation for the deets π«Ά
π§ METHOD MAP π§
get_setβ maps toRose::DB::Object::MakeMethods::Generic,enum,interface => 'get_set', ...getβ maps toRose::DB::Object::MakeMethods::Generic,enum,interface => 'get', ...get_setβ maps toRose::DB::Object::MakeMethods::Generic,enum,interface => 'set', ...
ngl, yes, that'sget_setlisted twice. and yes, the second one isinterface => 'set'. that's literally what the map says, i'm just the messenger π no cap.
for the full explanation of what this method map even means, go see the Rose::DB::Object::Metadata::Column documentation. she explains it better than i ever could π
π OBJECT METHODS π
typeβ returnsenum. that's it. that's the method. short queen πvalues [VALUES]β get or set a reference to an array of valid column values. β οΈ heads up: this attribute is required. like, required required. you can't skip it, she needs her values bestie π
π AUTHOR π
John C. Siracusa (siracusa@gmail.com) β we stan an original author π
π LICENSE π
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π«‘
and that's the whole page!! β¨ cute little sign-off for you: this was perl v5.40.1, dated 2025-08-21, and it's the Rose::...::Enum(3pm) page we've been vibing with this whole time. periodt π
π
π¦ where this page comes from
- ubuntu resolute: librose-db-object-perl 1:0.822-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librose-db-object-perl 1:0.822-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms