DBIx::C...sAsHash(3)

πŸ’– NAME πŸ’–

okay bestie, this is DBIx::C...sAsHash(3) β€” aka the manual for DBIx::Class::CDBICompat::ColumnsAsHash πŸ’… It emulates the Class::DBI behavior where the object can be accessed as a hash of columns. iconic compatibility move, no cap ✨

🌸 SYNOPSIS 🌸

See DBIx::Class::CDBICompat for usage directions.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this module emulates the undocumented behavior of Class::DBI where the object can be accessed as a hash of columns. It's often used as a performance hack, fr fr.

my $column = $result->{column};

πŸ’€ Differences from Class::DBI πŸ’€

If DBIC_CDBICOMPAT_HASH_WARN is true, it will warn when a column is accessed as a hash key.

bestie, that's your lil heads-up: hash-key column access will warn when DBIC_CDBICOMPAT_HASH_WARN is true πŸ‘€

🫢 FURTHER QUESTIONS? 🫢

Check the list of additional DBIC resources.

This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.


xoxo, bestie πŸ’– β€” this lil manual is from perl v5.42.0, dated 2025-01-22, and the page tag is DBIx::C...sAsHash(3) πŸŽ€

πŸ“¦ where this page comes from