Type(3pm)

πŸ“¦
version 0.02 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Type(3pm) πŸ’–

ok so bestie, this is a page from the User Contributed Perl Documentation (that's the manual name, mwah, we love her) and she is called Type, section 3pm. let's get into it πŸ¦‹


✨ NAME ✨

Class::DBI::Plugin::Type β€” bestie, it figures out the type info for your columns. that's the whole job. iconic.


🌸 SYNOPSIS 🌸

ok so picture this, you got a package and you're out here living your Class::DBI life:

package Music::Artist;
use base 'Class::DBI';
use Class::DBI::Plugin::Type;
Music::Artist->table('artist');
Music::Artist->columns(All => qw/artistid name/);

print Music::Artist->column_type("artistid"); # integer

and then column_type("artistid") just hands you integer?? no cap, that's the vibe. ✨


πŸ’… DESCRIPTION πŸ’…

so this module lets your Class::DBI-based classes go ask their own columns what data type they are, and it does it in a database-independent way. like, you don't have to care which database is underneath, it just knows. it's giving main character energy fr fr πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

  • Class::DBI::AsForm β€” go look at her too, she's right there in the family 🫢

🌈 AUTHOR 🌈

Simon Cozens, <simon@cpan.org> β€” wrote it, we stan πŸ’œ


Copyright 2004 by Simon Cozens

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This module was generously sponsored by the Perl Foundation. πŸŽ‰

like, please keep that copyright line intact bestie, it's not a decoration, that's the actual license ✨

ok that's the whole page!! every last bit of it, nothing skipped, periodt πŸ’…

and a lil sign-off to close us out: this was rendered from perl v5.38.2, dated 2024-03-05, and that cute "Type(3pm)" in the corner? yeah, that's us. bye babes πŸ¦‹πŸ’–πŸŒΈ

πŸ“¦ where this page comes from