1DBIx::Class::Helper::ReUssuelrtSCeotn:t:rNiobCuDotBleIudxm:nP:seC(rl3la)sDso:c:uHmeelnpteart:i:oRnesultSet::NoColumns(3)
2
3
4
6 DBIx::Class::Helper::ResultSet::NoColumns - Look ma, no columns!
7
9 package MySchema::ResultSet::Bar;
10
11 use strict;
12 use warnings;
13
14 use parent 'DBIx::Class::ResultSet';
15
16 __PACKAGE__->load_components('Helper::ResultSet::NoColumns');
17
18 # in code using resultset:
19 my $rs = $schema->resultset('Bar')->no_columns->search(undef, {
20 '+columns' => { 'foo' => 'me.foo' },
21 });
22
24 This component simply gives you a method to clear the set of columns to
25 be selected. It's just handy sugar.
26
27 See "NOTE" in DBIx::Class::Helper::ResultSet for a nice way to apply
28 this to your entire schema.
29
31 no_columns
32 $rs->no_columns
33
34 Returns resultset with zero columns configured, fresh for the addition
35 of new columns.
36
38 Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
39
41 This software is copyright (c) 2020 by Arthur Axel "fREW" Schmidt.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.32.0 2D0B2I0x-:0:7C-l2a8ss::Helper::ResultSet::NoColumns(3)