DBIx::C...h::Like(3)
πΈ NAME πΈ
DBIx::Class::Helper::ResultSet::Shortcut::Search::Like π
okay bestie so this is the little helper that slides a LIKE into your ResultSet β yes, that LIKE, the SQL one, not the vibe one (tho the vibe is also immaculate). it's a page in section 3 of the manual, iykyk π
β¨ like($column || \@columns, $cond) β¨
one method, and honestly? she does exactly what it says on the tin π«Ά you hand her either a single column name or an arrayref of column names, plus your condition, and she goes off. iconic behaviour, no notes.
$rs->like('lyrics', '%zebra%');
$rs->like(['lyrics', 'title'], '%zebra%');
like β see how the first one is just one lonely column and the second one is a whole little squad in an arrayref? both work. the || in the signature is literally telling you "one or the other, pick your fighter" β
π AUTHOR π
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie β no cap, that's genuinely all of it π
cute little sign-off: this page came to you fromperl v5.42.0, dated2025-07-25, and it lives atDBIx::C...h::Like(3). mwah π
π¦ where this page comes from
- fedora 43: perl-DBIx-Class-Helpers 2.037000-3.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms