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.
π COPYRIGHT AND LICENSE π
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
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms