DBIx::Class::Helper::ResultSet::NoColumns(3pm)

DBIx::Class::Helper::ResultSet::NoColumns3pm

Look ma, no columns!

Usage

 package MySchema::ResultSet::Bar;
 use strict;
 use warnings;
 use parent 'DBIx::Class::ResultSet';
 __PACKAGE__->load_components('Helper::ResultSet::NoColumns');
 # in code using resultset:
 my $rs = $schema->resultset('Bar')->no_columns->search(undef, {
    '+columns' => { 'foo' => 'me.foo' },
 });

Overview

This component simply gives you a method to clear the set of columns to be selected. It's just handy sugar.

See "NOTE" in DBIx::Class::Helper::ResultSet for a nice way to apply this to your entire schema.

Methods

no_columns

 $rs->no_columns

Returns resultset with zero columns configured, fresh for the addition of new columns.

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Arthur Axel "fREW" Schmidt <[email protected]>

From libdbix-class-helpers-perl 2.037000-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.