b67c8f3 14 years ago
1 contributor
63 lines | 0.962kb
package DBIx::Custom::Query;

use strict;
use warnings;

use base 'Object::Simple';

__PACKAGE__->attr([qw/sql columns default_filter filter sth/]);

1;

=head1 NAME

DBIx::Custom::Query - query used by DBIx::Custom

=head1 SYNOPSIS
    
    # New
    my $query = DBIx::Custom::Query->new;
    
=head1 ATTRIBUTES

=head2 C<sql>

SQL statement.

    $query = $query->sql($sql);
    $sql   = $query->sql;

=head2 C<columns>

Column names.

    $query   = $query->columns([@columns]);
    $columns = $query->columns;

=head2 C<default_filter>

Default filter.

    $query          = $query->default_filter($filter);
    $default_filter = $query->default_filter;

=head2 C<filter>

Filter.

    $query  = $query->filter({%filter});
    $filter = $query->filter;

=head2 C<sth>

Statement handle.

    $query = $query->sth($sth);
    $sth   = $query->sth;

=head1 METHODS

This class is L<Object::Simple> subclass.
You can use all methods of L<Object::Simple>.

=cut