... | ... |
@@ -1,3 +1,5 @@ |
1 |
+0.1633 |
|
2 |
+ fixed test |
|
1 | 3 |
0.1632 |
2 | 4 |
added experimental DBIx::Custom::Where. |
3 | 5 |
removed DBIx::Custom::Or |
... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
package DBIx::Custom; |
2 | 2 |
|
3 |
-our $VERSION = '0.1632'; |
|
3 |
+our $VERSION = '0.1633'; |
|
4 | 4 |
|
5 | 5 |
use 5.008001; |
6 | 6 |
use strict; |
... | ... |
@@ -1405,6 +1405,12 @@ B<Example:> |
1405 | 1405 |
param => {author => 'taro'}, |
1406 | 1406 |
filter => {author => 'encode_utf8'}); |
1407 | 1407 |
|
1408 |
+=head2 C<(experimental) where> |
|
1409 |
+ |
|
1410 |
+ my $where = $dbi->where; |
|
1411 |
+ |
|
1412 |
+Create a new L<DBIx::Custom::Where> object. |
|
1413 |
+ |
|
1408 | 1414 |
=head2 C<(deprecated) default_bind_filter> |
1409 | 1415 |
|
1410 | 1416 |
my $default_bind_filter = $dbi->default_bind_filter; |
... | ... |
@@ -406,8 +406,8 @@ You can create table object which have methods. |
406 | 406 |
$dbi->table('book'); |
407 | 407 |
|
408 | 408 |
This class have C<insert()>, C<update()>, C<update_all()>, |
409 |
-C<delete>, C<delete_all>, C<select(). |
|
410 |
-These is same as C<DBIx::Custom>'s methods except that |
|
409 |
+C<delete()>, C<delete_all()>, C<select()>. |
|
410 |
+These is same as L<DBIx::Custom>'s methods except that |
|
411 | 411 |
you don't have to specify table. |
412 | 412 |
|
413 | 413 |
$dbi->table('book')->insert( |
... | ... |
@@ -115,17 +115,16 @@ DBIx::Custom::Where - Where clause |
115 | 115 |
|
116 | 116 |
=head2 C<clause> |
117 | 117 |
|
118 |
- $where->clause(title => '{= title}', date => '{< date}', |
|
119 |
- date => '{> date}'); |
|
118 |
+ $where->clause(title => '{= title}', date => ['{< date}', '{> date}']); |
|
120 | 119 |
|
121 |
-Where clause. These clauses is joined by ' and ' in C<to_string()> |
|
120 |
+Where clause. These clauses is joined by ' and ' at C<to_string()> |
|
122 | 121 |
if corresponding parameter name is exists in C<param>. |
123 | 122 |
|
124 |
-=head2 C<or_join> |
|
123 |
+=head2 C<or_clause> |
|
125 | 124 |
|
126 |
- $where->or_join('name', ...); |
|
125 |
+ $where->or_clause(name => '{= name}'); |
|
127 | 126 |
|
128 |
-The clause which has these paramter name is joined by ' or '. |
|
127 |
+clause which has these parameter name is joined by ' or '. |
|
129 | 128 |
|
130 | 129 |
=head2 C<to_string> |
131 | 130 |
|