... | ... |
@@ -1,6 +1,7 @@ |
1 | 1 |
0.2102 |
2 | 2 |
- fixed bug that DBIx::Custom::Model count method don't receive model's |
3 | 3 |
attribute |
4 |
+ - insert method can receive multipule parameters, this is very fast, this is experimental |
|
4 | 5 |
0.2101 |
5 | 6 |
- fixed small default_bind_filter bug |
6 | 7 |
- micro optimization |
... | ... |
@@ -2774,6 +2774,20 @@ as parameter value. |
2774 | 2774 |
|
2775 | 2775 |
{date => \"NOW()"} |
2776 | 2776 |
|
2777 |
+You can pass multiple parameters, this is very fast. |
|
2778 |
+This is EXPERIMETNAL. |
|
2779 |
+ |
|
2780 |
+ $dbi->insert( |
|
2781 |
+ [ |
|
2782 |
+ {title => 'Perl', author => 'Ken'}, |
|
2783 |
+ {title => 'Ruby', author => 'Tom'} |
|
2784 |
+ ], |
|
2785 |
+ table => 'book' |
|
2786 |
+ ); |
|
2787 |
+ |
|
2788 |
+In multiple insert, you can't use C<id> option. |
|
2789 |
+and only first parameter is used by creating sql. |
|
2790 |
+ |
|
2777 | 2791 |
B<options> |
2778 | 2792 |
|
2779 | 2793 |
C<insert> method use all of C<execute> method's options, |