Newer Older
59 lines | 1.019kb
packaging one directory
yuki-kimoto authored on 2009-11-16
1
package DBIx::Custom::Query;
2

            
update document
yuki-kimoto authored on 2009-11-17
3
use strict;
4
use warnings;
5

            
update document
yuki-kimoto authored on 2010-01-30
6
use base 'Object::Simple';
7

            
cleanup
Yuki Kimoto authored on 2011-01-23
8
__PACKAGE__->attr([qw/columns filter sql sth/]);
9

            
10
# DEPRECATED!
11
__PACKAGE__->attr('default_filter');
cleanup
yuki-kimoto authored on 2010-01-21
12

            
update document
yuki-kimoto authored on 2010-01-30
13
1;
14

            
packaging one directory
yuki-kimoto authored on 2009-11-16
15
=head1 NAME
16

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
17
DBIx::Custom::Query - Query
packaging one directory
yuki-kimoto authored on 2009-11-16
18

            
19
=head1 SYNOPSIS
20
    
version 0.0901
yuki-kimoto authored on 2009-12-17
21
    my $query = DBIx::Custom::Query->new;
22
    
update document
yuki-kimoto authored on 2010-01-30
23
=head1 ATTRIBUTES
packaging one directory
yuki-kimoto authored on 2009-11-16
24

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
25
=head2 C<columns>
removed reconnect method
yuki-kimoto authored on 2010-05-28
26

            
cleanup
yuki-kimoto authored on 2010-08-03
27
    my $columns = $query->columns;
cleanup
yuki-kimoto authored on 2010-08-05
28
    $query      = $query->columns(['auhtor', 'title']);
removed reconnect method
yuki-kimoto authored on 2010-05-28
29

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
30
Column names.
packaging one directory
yuki-kimoto authored on 2009-11-16
31

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
32
=head2 C<filter>
update document
yuki-kimoto authored on 2009-11-19
33

            
cleanup
yuki-kimoto authored on 2010-08-03
34
    my $filter = $query->filter;
cleanup
Yuki Kimoto authored on 2011-01-23
35
    $query     = $query->filter({author => 'to_something',
36
                                 title  => 'to_something'});
packaging one directory
yuki-kimoto authored on 2009-11-16
37

            
cleanup
yuki-kimoto authored on 2010-08-05
38
Filters when parameter binding is executed.
cleanup
yuki-kimoto authored on 2010-08-05
39
This overwrites C<default_filter>.
packaging one directory
yuki-kimoto authored on 2009-11-16
40

            
cleanup
yuki-kimoto authored on 2010-10-17
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...
yuki-kimoto authored on 2010-07-18
48
=head2 C<sth>
update document
yuki-kimoto authored on 2009-11-19
49

            
cleanup
yuki-kimoto authored on 2010-08-03
50
    my $sth = $query->sth;
51
    $query  = $query->sth($sth);
packaging one directory
yuki-kimoto authored on 2009-11-16
52

            
cleanup
yuki-kimoto authored on 2010-08-05
53
Statement handle of L<DBI>
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
54

            
update document
yuki-kimoto authored on 2010-01-30
55
=head1 METHODS
56

            
cleanup
yuki-kimoto authored on 2010-08-05
57
L<DBIx::Custom::Query> inherits all methods from L<Object::Simple>.
catch up with Object::Simple...
yuki-kimoto authored on 2010-01-22
58

            
59
=cut