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. |
packaging one directory
|
39 | |
cleanup
|
40 |
=head2 C<sql> |
41 | ||
42 |
my $sql = $query->sql; |
|
43 |
$query = $query->sql('select * from books where author = ?;'); |
|
44 | ||
45 |
SQL statement. |
|
46 | ||
removed DESTROY method(not b...
|
47 |
=head2 C<sth> |
update document
|
48 | |
cleanup
|
49 |
my $sth = $query->sth; |
50 |
$query = $query->sth($sth); |
|
packaging one directory
|
51 | |
cleanup
|
52 |
Statement handle of L<DBI> |
removed DESTROY method(not b...
|
53 | |
update document
|
54 |
=head1 METHODS |
55 | ||
cleanup
|
56 |
L<DBIx::Custom::Query> inherits all methods from L<Object::Simple>. |
catch up with Object::Simple...
|
57 | |
58 |
=cut |