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