DBIx::C...h::Like(3)

πŸ“¦
version 2.037000 Β· 2 versions
, in fedora 43

🌸 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>

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 from perl v5.42.0, dated 2025-07-25, and it lives at DBIx::C...h::Like(3). mwah πŸ’‹
πŸ“¦ where this page comes from