packaging one directory
|
1 |
package DBIx::Custom::Query; |
2 | ||
update document
|
3 |
use strict; |
4 |
use warnings; |
|
5 | ||
update document
|
6 |
use base 'Object::Simple'; |
7 | ||
simplify filtering system
|
8 |
__PACKAGE__->attr([qw/sql columns default_filter filter sth/]); |
cleanup
|
9 | |
update document
|
10 |
1; |
11 | ||
packaging one directory
|
12 |
=head1 NAME |
13 | ||
update document
|
14 |
DBIx::Custom::Query - query used by DBIx::Custom |
packaging one directory
|
15 | |
16 |
=head1 SYNOPSIS |
|
17 |
|
|
version 0.0901
|
18 |
# New |
19 |
my $query = DBIx::Custom::Query->new; |
|
20 |
|
|
update document
|
21 |
=head1 ATTRIBUTES |
packaging one directory
|
22 | |
23 |
=head2 sth |
|
24 | ||
update document
|
25 |
Statement handle. |
update document
|
26 | |
version 0.0901
|
27 |
$query = $query->sth($sth); |
28 |
$sth = $query->sth; |
|
packaging one directory
|
29 | |
30 |
=head2 sql |
|
31 | ||
update document
|
32 |
SQL statement. |
update document
|
33 | |
version 0.0901
|
34 |
$query = $query->sql($sql); |
35 |
$sql = $query->sql; |
|
packaging one directory
|
36 | |
many many changes
|
37 |
=head2 default_filter |
packaging one directory
|
38 | |
update document
|
39 |
Default filter. |
update document
|
40 | |
update document
|
41 |
$query = $query->default_filter($filter); |
many many changes
|
42 |
$default_filter = $query->default_filter; |
packaging one directory
|
43 | |
many many changes
|
44 |
=head2 filter |
packaging one directory
|
45 | |
update document
|
46 |
Filter. |
update document
|
47 | |
update document
|
48 |
$query = $query->filter({%filter}); |
many many changes
|
49 |
$filter = $query->filter; |
packaging one directory
|
50 | |
simplify filtering system
|
51 |
=head2 columns |
packaging one directory
|
52 | |
update document
|
53 |
Column names. |
update document
|
54 | |
update document
|
55 |
$query = $query->columns([@columns]); |
simplify filtering system
|
56 |
$columns = $query->columns; |
packaging one directory
|
57 | |
update document
|
58 |
=head1 METHODS |
59 | ||
60 |
This class is L<Object::Simple> subclass. |
|
update document
|
61 |
You can use all methods of L<Object::Simple>. |
catch up with Object::Simple...
|
62 | |
63 |
=cut |