Rose::...tfield(3pm)

πŸŽ€ NAME πŸŽ€

okay so welcome to the manual page for Rose::DB::Object::Metadata::Column::Bitfield β€” straight out of the User Contributed Perl Documentation corner of the manual universe ✨ it's the bitfield column metadata class, and yes it's as niche and iconic as it sounds πŸ’…


✨ SYNOPSIS ✨

use Rose::DB::Object::Metadata::Column::Bitfield;

$col = Rose::DB::Object::Metadata::Column::Bitfield->new(...);
$col->make_methods(...);
...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so objects of this class store and manipulate metadata for bitfield columns in a database πŸ’– column metadata objects store information about columns β€” like data type, size, etc. β€” and they're responsible for parsing, formatting, and creating object methods that manipulate column values. very main character energy, honestly πŸ‘‘

this class inherits from Rose::DB::Object::Metadata::Column. inherited methods that are not overridden will not be documented a second time here, bestie β€” see the Rose::DB::Object::Metadata::Column documentation for more information 🫢

⚠️ important note, fr fr: if you're using MySQL 5.0.3 or later, you must allow inline column values in any Rose::DB::Object-derived class that has one or more bitfield columns. (that is, columns that use the "BIT" data type.) this requirement may be relaxed in the future. so yeah, don't skip that detail 😭

πŸ’… METHOD MAP πŸ’…

  • "get_set" β€” Rose::DB::Object::MakeMethods::Generic, bitfield, ...
  • "get" β€” Rose::DB::Object::MakeMethods::Generic, bitfield, ...
  • "get_set" β€” Rose::DB::Object::MakeMethods::Generic, bitfield, ...

and yes, get_set really is listed twice up there β€” I don't make the rules, I just keep every detail πŸ’€ see the Rose::DB::Object::Metadata::Column documentation for an explanation of this method map 🌸


πŸŽ€ OBJECT METHODS πŸŽ€

  • bits [INT] β€” get or set the number of bits in the column ✨
  • parse_value DB, VALUE β€” convert VALUE to the equivalent Bit::Vector object. the return value of the column object's bits() method is used to determine the length of the bitfield in bits. DB is a Rose::DB object that is used as part of the parsing process. both arguments are required 🫢
  • type β€” returns "bitfield" πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

John C. Siracusa (siracusa@gmail.com) β€” icon behavior, honestly πŸ’–


🌈 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. periodt πŸ’…


and that's the whole page, bestie 🫢 β€” it comes from perl v5.40.1, dated 2025-08-21, under the page name Rose::...tfield(3pm). bye mwah πŸ’‹

πŸ“¦ where this page comes from