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 | ||
many many changes
|
8 |
__PACKAGE__->attr([qw/sql key_infos default_filter filter sth/]); |
cleanup
|
9 | |
update document
|
10 |
1; |
11 | ||
packaging one directory
|
12 |
=head1 NAME |
13 | ||
update document
|
14 |
DBIx::Custom::Query - DBIx::Custom query |
packaging one directory
|
15 | |
16 |
=head1 SYNOPSIS |
|
17 |
|
|
version 0.0901
|
18 |
# New |
19 |
my $query = DBIx::Custom::Query->new; |
|
20 |
|
|
21 |
# Create by using create_query |
|
22 |
my $query = DBIx::Custom->create_query($template); |
|
23 |
|
|
update document
|
24 |
=head1 ATTRIBUTES |
packaging one directory
|
25 | |
26 |
=head2 sth |
|
27 | ||
update document
|
28 |
Statement handle |
update document
|
29 | |
version 0.0901
|
30 |
$query = $query->sth($sth); |
31 |
$sth = $query->sth; |
|
packaging one directory
|
32 | |
33 |
=head2 sql |
|
34 | ||
update document
|
35 |
SQL |
update document
|
36 | |
version 0.0901
|
37 |
$query = $query->sql($sql); |
38 |
$sql = $query->sql; |
|
packaging one directory
|
39 | |
many many changes
|
40 |
=head2 default_filter |
packaging one directory
|
41 | |
update document
|
42 |
Filter excuted when value is bind |
update document
|
43 | |
many many changes
|
44 |
$query = $query->default_filter($default_filter); |
45 |
$default_filter = $query->default_filter; |
|
packaging one directory
|
46 | |
many many changes
|
47 |
=head2 filter |
packaging one directory
|
48 | |
many many changes
|
49 |
Filter excuted when value is bind |
update document
|
50 | |
many many changes
|
51 |
$query = $query->filter($filter); |
52 |
$filter = $query->filter; |
|
packaging one directory
|
53 | |
54 |
=head2 key_infos |
|
55 | ||
update document
|
56 |
Key informations |
update document
|
57 | |
version 0.0901
|
58 |
$query = $query->key_infos($key_infos); |
59 |
$key_infos = $query->key_infos; |
|
packaging one directory
|
60 | |
update document
|
61 |
=head1 METHODS |
62 | ||
63 |
This class is L<Object::Simple> subclass. |
|
64 |
You can use all methods of L<Object::Simple> |
|
cleanup
|
65 | |
66 |
=head2 new |
|
67 | ||
68 |
my $query = DBIx::Custom::Query->new; |
|
catch up with Object::Simple...
|
69 | |
70 |
=cut |