Andy Grundman > DBIx-Class-0.03003 > DBIx::Class::Table

Download:
DBIx-Class-0.03003.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  18
Stalled  11
View/Report Bugs
Source   Latest Release: DBIx-Class-0.04999_02

NAME ^

DBIx::Class::Table - Basic table methods

SYNOPSIS ^

DESCRIPTION ^

This class is responsible for defining and doing basic operations on DBIx::Class objects.

METHODS ^

add_columns
  __PACKAGE__->add_columns(qw/col1 col2 col3/);

Adds columns to the current package, and creates accessors for them

search_literal
  my @obj    = $class->search_literal($literal_where_cond, @bind);
  my $cursor = $class->search_literal($literal_where_cond, @bind);
count_literal
  my $count = $class->count_literal($literal_where_cond);
count
  my $count = $class->count({ foo => 3 });
search
  my @obj    = $class->search({ foo => 3 });
  my $cursor = $class->search({ foo => 3 });
search_like

Identical to search except defaults to 'LIKE' instead of '=' in condition

table
  __PACKAGE__->table('tbl_name');
find_or_create
  $class->find_or_create({ key => $val, ... });

Searches for a record matching the search condition; if it doesn't find one, creates one and returns that instead

AUTHORS ^

Matt S. Trout <mst@shadowcatsystems.co.uk>

LICENSE ^

You may distribute this code under the same terms as Perl itself.

syntax highlighting: