Newer Older
58 lines | 0.984kb
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.
packaging one directory
yuki-kimoto authored on 2009-11-16
39

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

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

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

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

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

            
58
=cut