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 sql |
|
24 | ||
update document
|
25 |
SQL statement. |
update document
|
26 | |
version 0.0901
|
27 |
$query = $query->sql($sql); |
28 |
$sql = $query->sql; |
|
packaging one directory
|
29 | |
removed reconnect method
|
30 |
=head2 columns |
31 | ||
32 |
Column names. |
|
33 | ||
34 |
$query = $query->columns([@columns]); |
|
35 |
$columns = $query->columns; |
|
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 | |
removed reconnect method
|
51 |
=head2 sth |
packaging one directory
|
52 | |
removed reconnect method
|
53 |
Statement handle. |
update document
|
54 | |
removed reconnect method
|
55 |
$query = $query->sth($sth); |
56 |
$sth = $query->sth; |
|
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 |