DBIx::...r::UUID(3pm)

πŸ“¦
version 0.02006 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

DBIx::Class::UUIDColumns::UUIDMaker::UUID β€” bestie, this is the lil' subclass that makes uuids using UUID. That's the whole job. She creates. She serves. πŸŽ€


✨ SYNOPSIS ✨

package Artist;
__PACKAGE__->load_components(qw/UUIDColumns Core DB/);
__PACKAGE__->uuid_columns( 'artist_id' );
__PACKAGE__->uuid_class('::UUID');

okay so like, that's literally the whole setup. you load the components, you tell it which column is the uuid one, and you point uuid_class at ::UUID. done. slay. πŸ’…


🌸 DESCRIPTION 🌸

so this is a DBIx::Class::UUIDColumns::UUIDMaker subclass, right? and what she does is use UUID to generate uuid strings, in this exact format:

098f2470-bae0-11cd-b579-08002b30bfeb

that's it. that's the format. eight-four-four-four-twelve, dashes in all the right places, no notes. iconic behavior honestly. ✨


πŸ¦‹ METHODS πŸ¦‹

πŸ’œ as_string

Returns the new uuid as a string. that's it, that's the method. she gives you a string. not a blessing, not an object, a string. periodt. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

  • UUID

🫢 AUTHOR 🫢

Chris Laco <claco@chrislaco.com>

give her her flowers, she wrote this. πŸ’


⭐ LICENSE ⭐

You may distribute this code under the same terms as Perl itself. so like, same vibe as Perl, go wild, be normal about it. πŸŽ€


ngl bestie, if you got this far you're basically a DBIx::Class uuid girlie now. iykyk. πŸ’…βœ¨

this page came from the User Contributed Perl Documentation, and the footer said perl v5.32.0 dated 2021-01-06 β€” so yeah, vintage but still eating. πŸ“ bye bestie, go generate some uuids πŸ’–πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from