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 | ||
removed DESTROY method(not b...
|
14 |
DBIx::Custom::Query - Query |
packaging one directory
|
15 | |
16 |
=head1 SYNOPSIS |
|
17 |
|
|
version 0.0901
|
18 |
my $query = DBIx::Custom::Query->new; |
19 |
|
|
update document
|
20 |
=head1 ATTRIBUTES |
packaging one directory
|
21 | |
removed DBIx::Custom commit ...
|
22 |
=head2 C<sql> |
packaging one directory
|
23 | |
cleanup
|
24 |
my $sql = $query->sql; |
cleanup
|
25 |
$query = $query->sql('select * from books where author = ?;'); |
packaging one directory
|
26 | |
removed DESTROY method(not b...
|
27 |
SQL statement. |
removed reconnect method
|
28 | |
removed DESTROY method(not b...
|
29 |
=head2 C<columns> |
removed reconnect method
|
30 | |
cleanup
|
31 |
my $columns = $query->columns; |
cleanup
|
32 |
$query = $query->columns(['auhtor', 'title']); |
removed reconnect method
|
33 | |
removed DESTROY method(not b...
|
34 |
Column names. |
packaging one directory
|
35 | |
removed DESTROY method(not b...
|
36 |
=head2 C<default_filter> |
update document
|
37 | |
cleanup
|
38 |
my $default_filter = $query->default_filter; |
cleanup
|
39 |
$query = $query->default_filter('encode_utf8'); |
packaging one directory
|
40 | |
cleanup
|
41 |
Default filter when parameter binding is executed. |
packaging one directory
|
42 | |
removed DESTROY method(not b...
|
43 |
=head2 C<filter> |
update document
|
44 | |
cleanup
|
45 |
my $filter = $query->filter; |
cleanup
|
46 |
$query = $query->filter({author => 'encode_utf8', |
47 |
title => 'encode_utf8'}); |
|
packaging one directory
|
48 | |
cleanup
|
49 |
Filters when parameter binding is executed. |
50 |
This overrides C<default_filter>. |
|
packaging one directory
|
51 | |
removed DESTROY method(not b...
|
52 |
=head2 C<sth> |
update document
|
53 | |
cleanup
|
54 |
my $sth = $query->sth; |
55 |
$query = $query->sth($sth); |
|
packaging one directory
|
56 | |
cleanup
|
57 |
Statement handle of L<DBI> |
removed DESTROY method(not b...
|
58 | |
update document
|
59 |
=head1 METHODS |
60 | ||
cleanup
|
61 |
L<DBIx::Custom::Query> inherits all methods from L<Object::Simple>. |
catch up with Object::Simple...
|
62 | |
63 |
=cut |