Showing 8 changed files with 15 additions and 96 deletions
+2
Changes
... ...
@@ -1,3 +1,5 @@
1
+0.0502
2
+  update document
1 3
 0.0501
2 4
   packaging DBIx::Custom::Result DBIx::Custom::Query DBIx::Custom::MySQL DBIx::Custom::SQLite DBIx::Custom::SQL::Template 
3 5
 0.0401
+2 -2
lib/DBIx/Custom.pm
... ...
@@ -3,7 +3,7 @@ use 5.008001;
3 3
 package DBIx::Custom;
4 4
 use Object::Simple;
5 5
 
6
-our $VERSION = '0.0501';
6
+our $VERSION = '0.0502';
7 7
 
8 8
 use Carp 'croak';
9 9
 use DBI;
... ...
@@ -755,7 +755,7 @@ DBIx::Custom - Customizable simple DBI
755 755
 
756 756
 =head1 VERSION
757 757
 
758
-Version 0.0501
758
+Version 0.0502
759 759
 
760 760
 =head1 CAUTION
761 761
 
+1 -2
lib/DBIx/Custom/Basic.pm
... ...
@@ -1,10 +1,9 @@
1 1
 package DBIx::Custom::Basic;
2
-use 5.008001;
3 2
 use base 'DBIx::Custom';
4
-use Encode qw/decode encode/;
5 3
 
6 4
 use warnings;
7 5
 use strict;
6
+use Encode qw/decode encode/;
8 7
 
9 8
 my $class = __PACKAGE__;
10 9
 
-70
lib/DBIx/Custom/Pg.pm
... ...
@@ -1,70 +0,0 @@
1
-package DBIx::Custom::Pg;
2
-use base 'DBIx::Custom::Basic';
3
-
4
-use warnings;
5
-use strict;
6
-
7
-my $class = __PACKAGE__;
8
-
9
-
10
-sub connect {
11
-    my $self = shift;
12
-    
13
-    if (!$self->data_source) {
14
-        my $database = $self->database;
15
-        my $host     = $self->host;
16
-        my $port     = $self->port;
17
-        
18
-        my $data_source = "dbi:Pg:";
19
-        my $data_source_original = $data_source;
20
-        $data_source .= "dbname=$database;" if $database;
21
-        $data_source .= "host=$host;"       if $host;
22
-        $data_source .= "port=$port;"       if $port;
23
-        
24
-        $data_source =~ s/:$// if $data_source eq $data_source_original;
25
-        $self->data_source($data_source);
26
-    }
27
-    
28
-    return $self->SUPER::connect;
29
-}
30
-
31
-=head1 NAME
32
-
33
-DBIx::Custom::Pg - DBIx::Custom PostgreSQL implementation
34
-
35
-=head1 Synopsys
36
-
37
-=head1 See DBIx::Custom and DBI::Custom::Basic documentation
38
-
39
-This class is L<DBIx::Custom::Basic> subclass,
40
-and L<DBIx::Custom::Basic> is L<DBIx::Custom> subclass.
41
-
42
-You can use all methods of L<DBIx::Custom::Basic> and <DBIx::Custom>
43
-Please see L<DBIx::Custom::Basic> and <DBIx::Custom> documentation.
44
-
45
-=head1 Object methods
46
-
47
-=head2 connect
48
-
49
-    This method override DBIx::Custom::connect
50
-    
51
-    If database attribute is set, automatically data source is created and connect
52
-
53
-=head2 last_insert_id
54
-
55
-=head1 Author
56
-
57
-Yuki Kimoto, C<< <kimoto.yuki at gmail.com> >>
58
-
59
-Github L<http://github.com/yuki-kimoto>
60
-
61
-I develope this module L<http://github.com/yuki-kimoto/DBIx-Custom>
62
-
63
-=head1 Copyright & license
64
-
65
-Copyright 2009 Yuki Kimoto, all rights reserved.
66
-
67
-This program is free software; you can redistribute it and/or modify it
68
-under the same terms as Perl itself.
69
-
70
-
+4 -5
lib/DBIx/Custom/Query.pm
... ...
@@ -1,6 +1,9 @@
1 1
 package DBIx::Custom::Query;
2 2
 use Object::Simple;
3 3
 
4
+use strict;
5
+use warnings;
6
+
4 7
 sub sql             : Attr {}
5 8
 sub key_infos       : Attr {}
6 9
 sub bind_filter     : Attr {}
... ...
@@ -21,11 +24,7 @@ Object::Simple->build_class;
21 24
 
22 25
 =head1 NAME
23 26
 
24
-DBIx::Custom::Query - Query object for DBIx::Custom
25
-
26
-=head1 VERSION
27
-
28
-Version 0.0101
27
+DBIx::Custom::Query - DBIx::Custom query
29 28
 
30 29
 =head1 SYNOPSIS
31 30
 
+2 -5
lib/DBIx/Custom/Result.pm
... ...
@@ -1,5 +1,6 @@
1 1
 package DBIx::Custom::Result;
2 2
 use Object::Simple;
3
+
3 4
 use strict;
4 5
 use warnings;
5 6
 use Carp 'croak';
... ...
@@ -193,11 +194,7 @@ Object::Simple->build_class;
193 194
 
194 195
 =head1 NAME
195 196
 
196
-DBIx::Custom::Result - Resultset for DBIx::Custom
197
-
198
-=head1 VERSION
199
-
200
-Version 0.0301
197
+DBIx::Custom::Result - DBIx::Custom Resultset
201 198
 
202 199
 =head1 SYNOPSIS
203 200
 
+3 -7
lib/DBIx/Custom/SQL/Template.pm
... ...
@@ -1,6 +1,8 @@
1 1
 package DBIx::Custom::SQL::Template;
2 2
 use Object::Simple;
3 3
 
4
+use strict;
5
+use warnings;
4 6
 use Carp 'croak';
5 7
 
6 8
 # Accessor is created by Object::Simple. Please read Object::Simple document
... ...
@@ -471,13 +473,7 @@ sub expand_update_tag {
471 473
 
472 474
 =head1 NAME
473 475
 
474
-DBIx::Custom::SQL::Template - Custamizable SQL Template for DBIx::Custom
475
-
476
-=head1 VERSION
477
-
478
-Version 0.0101
479
-
480
-=cut
476
+DBIx::Custom::SQL::Template - DBIx::Custom SQL Template
481 477
 
482 478
 =head1 SYNOPSIS
483 479
     
+1 -5
lib/DBIx/Custom/SQLite.pm
... ...
@@ -1,8 +1,8 @@
1 1
 package DBIx::Custom::SQLite;
2 2
 use base 'DBIx::Custom::Basic';
3 3
 
4
-use warnings;
5 4
 use strict;
5
+use warnings;
6 6
 use Carp 'croak';
7 7
 
8 8
 my $class = __PACKAGE__;
... ...
@@ -64,10 +64,6 @@ sub last_insert_id {
64 64
 
65 65
 DBIx::Custom::SQLite - DBIx::Custom SQLite implementation
66 66
 
67
-=head1 Version
68
-
69
-Version 0.0201
70
-
71 67
 =head1 Synopsys
72 68
 
73 69
     use DBIx::Custom::SQLite;