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