... | ... |
@@ -1000,6 +1000,14 @@ Default to L<DBIx::Custom::QueryBuilder> object. |
1000 | 1000 |
Result class for select statement. |
1001 | 1001 |
Default to L<DBIx::Custom::Result>. |
1002 | 1002 |
|
1003 |
+=head2 C<(experimental) safety_column_name> |
|
1004 |
+ |
|
1005 |
+ my $safety_column_name = $self->safety_column_name; |
|
1006 |
+ $dbi = $self->safety_column_name($name); |
|
1007 |
+ |
|
1008 |
+Safety column name regex. |
|
1009 |
+Default is qr/^[\w\.]*$/ |
|
1010 |
+ |
|
1003 | 1011 |
=head2 C<user> |
1004 | 1012 |
|
1005 | 1013 |
my $user = $dbi->user; |
... | ... |
@@ -1007,7 +1015,7 @@ Default to L<DBIx::Custom::Result>. |
1007 | 1015 |
|
1008 | 1016 |
User name. |
1009 | 1017 |
C<connect()> method use this value to connect the database. |
1010 |
- |
|
1018 |
+ |
|
1011 | 1019 |
=head1 METHODS |
1012 | 1020 |
|
1013 | 1021 |
L<DBIx::Custom> inherits all methods from L<Object::Simple> |
... | ... |
@@ -120,14 +120,6 @@ DBIx::Custom::Where - Where clause |
120 | 120 |
|
121 | 121 |
=head1 ATTRIBUTES |
122 | 122 |
|
123 |
-=head2 C<param> |
|
124 |
- |
|
125 |
- my $param = $where->param; |
|
126 |
- $where = $where->param({title => 'Perl', |
|
127 |
- date => ['2010-11-11', '2011-03-05']}, |
|
128 |
- name => ['Ken', 'Taro']); |
|
129 |
-=head1 METHODS |
|
130 |
- |
|
131 | 123 |
=head2 C<clause> |
132 | 124 |
|
133 | 125 |
$where->clause( |
... | ... |
@@ -139,6 +131,20 @@ If all parameter names is exists. |
139 | 131 |
|
140 | 132 |
"where ( {= title} and ( {< date} or {> date} ) )" |
141 | 133 |
|
134 |
+=head2 C<param> |
|
135 |
+ |
|
136 |
+ my $param = $where->param; |
|
137 |
+ $where = $where->param({title => 'Perl', |
|
138 |
+ date => ['2010-11-11', '2011-03-05']}, |
|
139 |
+ name => ['Ken', 'Taro']); |
|
140 |
+ |
|
141 |
+=head2 C<safety_column_name> |
|
142 |
+ |
|
143 |
+ my $safety_column_name = $self->safety_column_name; |
|
144 |
+ $dbi = $self->safety_column_name($name); |
|
145 |
+ |
|
146 |
+=head1 METHODS |
|
147 |
+ |
|
142 | 148 |
=head2 C<to_string> |
143 | 149 |
|
144 | 150 |
$where->to_string; |