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 | ||
rename bind_filter to query_...
|
8 |
__PACKAGE__->attr([qw/sql key_infos query_filter fetch_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 |
|
|
many change
|
24 |
# Attributes |
rename bind_filter to query_...
|
25 |
$query->query_filter($dbi->filters->{default_query_filter}); |
packaging one directory
|
26 |
$query->fetch_filter($dbi->filters->{default_fetch_filter}); |
27 | ||
update document
|
28 |
=head1 ATTRIBUTES |
packaging one directory
|
29 | |
30 |
=head2 sth |
|
31 | ||
update document
|
32 |
Statement handle |
update document
|
33 | |
version 0.0901
|
34 |
$query = $query->sth($sth); |
35 |
$sth = $query->sth; |
|
packaging one directory
|
36 | |
37 |
=head2 sql |
|
38 | ||
update document
|
39 |
SQL |
update document
|
40 | |
version 0.0901
|
41 |
$query = $query->sql($sql); |
42 |
$sql = $query->sql; |
|
packaging one directory
|
43 | |
rename bind_filter to query_...
|
44 |
=head2 query_filter |
packaging one directory
|
45 | |
update document
|
46 |
Filter excuted when value is bind |
update document
|
47 | |
rename bind_filter to query_...
|
48 |
$query = $query->query_filter($query_filter); |
49 |
$query_filter = $query->query_filter; |
|
packaging one directory
|
50 | |
51 |
=head2 fetch_filter |
|
52 | ||
update document
|
53 |
Filter excuted when data is fetched |
update document
|
54 | |
version 0.0901
|
55 |
$query = $query->fetch_filter($fetch_filter); |
56 |
$fetch_filter = $query->fetch_filter; |
|
packaging one directory
|
57 | |
58 |
=head2 key_infos |
|
59 | ||
update document
|
60 |
Key informations |
update document
|
61 | |
version 0.0901
|
62 |
$query = $query->key_infos($key_infos); |
63 |
$key_infos = $query->key_infos; |
|
packaging one directory
|
64 | |
update document
|
65 |
=head1 METHODS |
66 | ||
67 |
This class is L<Object::Simple> subclass. |
|
68 |
You can use all methods of L<Object::Simple> |
|
cleanup
|
69 | |
70 |
=head2 new |
|
71 | ||
72 |
my $query = DBIx::Custom::Query->new; |
|
catch up with Object::Simple...
|
73 | |
74 |
=cut |