Newer Older
62 lines | 0.987kb
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

            
simplify filtering system
yuki-kimoto authored on 2010-05-01
8
__PACKAGE__->attr([qw/sql columns default_filter filter sth/]);
cleanup
yuki-kimoto authored on 2010-01-21
9

            
update document
yuki-kimoto authored on 2010-01-30
10
1;
11

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

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

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

            
removed DBIx::Custom commit ...
yuki-kimoto authored on 2010-07-14
22
=head2 C<sql>
packaging one directory
yuki-kimoto authored on 2009-11-16
23

            
cleanup
yuki-kimoto authored on 2010-08-03
24
    my $sql = $query->sql;
25
    $query  = $query->sql($sql);
packaging one directory
yuki-kimoto authored on 2009-11-16
26

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
27
SQL statement.
removed reconnect method
yuki-kimoto authored on 2010-05-28
28

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

            
cleanup
yuki-kimoto authored on 2010-08-03
31
    my $columns = $query->columns;
32
    $query      = $query->columns(\@columns);
removed reconnect method
yuki-kimoto authored on 2010-05-28
33

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

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

            
cleanup
yuki-kimoto authored on 2010-08-03
38
    my $default_filter = $query->default_filter;
39
    $query             = $query->default_filter($filter);
packaging one directory
yuki-kimoto authored on 2009-11-16
40

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
41
Default filter for value binding.
packaging one directory
yuki-kimoto authored on 2009-11-16
42

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

            
cleanup
yuki-kimoto authored on 2010-08-03
45
    my $filter = $query->filter;
46
    $query     = $query->filter(\%filter);
packaging one directory
yuki-kimoto authored on 2009-11-16
47

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
48
Filters for value binding
packaging one directory
yuki-kimoto authored on 2009-11-16
49

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

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

            
removed DESTROY method(not b...
yuki-kimoto authored on 2010-07-18
55
Statement handle.
56

            
update document
yuki-kimoto authored on 2010-01-30
57
=head1 METHODS
58

            
59
This class is L<Object::Simple> subclass.
update document
yuki-kimoto authored on 2010-05-27
60
You can use all methods of L<Object::Simple>.
catch up with Object::Simple...
yuki-kimoto authored on 2010-01-22
61

            
62
=cut