Rose::...Scalar(3pm)
πΈ NAME πΈ
Okay so this is the manual page for Rose::...Scalar(3pm) β from User Contributed Perl Documentation β and the actual class is Rose::DB::Object::Metadata::Column::Scalar. Itβs literally Scalar column metadata, and itβs giving tiny-but-important metadata era π
.
β¨ SYNOPSIS β¨
use Rose::DB::Object::Metadata::Column::Scalar;
$col = Rose::DB::Object::Metadata::Column::Scalar->new(...);
$col->make_methods(...);
...
Bestie, thatβs the whole vibe: load the class, make a $col, call methods, etc. π
π¦ DESCRIPTION π¦
Objects of this class store and manipulate metadata for scalar columns in a database. Column metadata objects store information about columns (data type, size, etc.) and are responsible for creating object methods that manipulate column values. β¨
This class inherits from Rose::DB::Object::Metadata::Column. Inherited methods that are not overridden will not be documented a second time here. See the Rose::DB::Object::Metadata::Column documentation for more information. No cap β thatβs where the inherited stuff lives π«Ά.
π METHOD MAP π
Hereβs the map, and yes weβre keeping every entry exactly as it is:
get_setβRose::DB::Object::MakeMethods::Generic, scalar,interface => 'get_set', ...getβRose::DB::Object::MakeMethods::Generic, scalar,interface => 'get', ...get_setβRose::DB::Object::MakeMethods::Generic, scalar,interface => 'set', ...
And yeah, the third label literally says get_set again while the interface says 'set' β thatβs exactly what the page says, so Iβm not touching it π. See the Rose::DB::Object::Metadata::Column documentation for an explanation of this method map.
π OBJECT METHODS π
check_in [ARRAYREF]
Get or set a reference to an array of valid column values. β¨
default VALUE
Get or set the default value for the column. π
init_method [NAME]
Get or set the name of the "init" method. See the documentation for the "scalar" method type in Rose::DB::Object::MakeMethods::Generic for more information.
length [INT]
Get or set the length of the column in characters. π
overflow [BEHAVIOR]
Get or set the setting that determines the behavior when the column value is greater than length characters. Valid values for BEHAVIOR are:
fatalβ Throw an exception.truncateβ Truncate the column value to the correct length.warnβ Print a warning message.
The default value is "fatal". So bestie, if it gets too long, itβs fatal by default β dramatic but true π.
type
Returns "scalar". Simple. Iconic. Periodt π.
with_init [BOOL]
Get or set the flag that determines whether or not the method created by make_method() will include an "init" method as well. See the documentation for the scalar method type in Rose::DB::Object::MakeMethods::Generic for more information.
π AUTHOR π
John C. Siracusa (siracusa@gmail.com) β give him his flowers πΈ.
π 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.
Mwah π β this page came from perl v5.40.1, dated 2025-08-21. Bye bestie, go slay those scalar columns π«Άβ¨
π¦ 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