...
|
...
|
@@ -2514,10 +2514,18 @@ Options is same as C<delete>.
|
2514
|
2514
|
}
|
2515
|
2515
|
);
|
2516
|
2516
|
|
2517
|
|
-Iterate all column informations of all table from database.
|
2518
|
|
-Argument is callback when one column is found.
|
2519
|
|
-Callback receive four arguments, dbi object, table name,
|
2520
|
|
-column name and column information.
|
|
2517
|
+Iterate all column informations in database.
|
|
2518
|
+Argument is callback which is executed when one column is found.
|
|
2519
|
+Callback receive four arguments. C<DBIx::Custom object>, C<table name>,
|
|
2520
|
+C<column name>, and C<column information>.
|
|
2521
|
+
|
|
2522
|
+If C<user_column_info> is set, C<each_column> method use C<user_column_info>
|
|
2523
|
+infromation, you can improve the performance of C<each_column> in
|
|
2524
|
+the following way.
|
|
2525
|
+
|
|
2526
|
+ my $column_infos = $dbi->get_column_info(exclude_table => qr/^system_/);
|
|
2527
|
+ $dbi->user_column_info($column_info);
|
|
2528
|
+ $dbi->each_column(sub { ... });
|
2521
|
2529
|
|
2522
|
2530
|
=head2 C<each_table>
|
2523
|
2531
|
|
...
|
...
|
@@ -2529,10 +2537,18 @@ column name and column information.
|
2529
|
2537
|
}
|
2530
|
2538
|
);
|
2531
|
2539
|
|
2532
|
|
-Iterate all table informationsfrom database.
|
2533
|
|
-Argument is callback when one table is found.
|
2534
|
|
-Callback receive three arguments, dbi object, table name,
|
2535
|
|
-table information.
|
|
2540
|
+Iterate all table informationsfrom in database.
|
|
2541
|
+Argument is callback which is executed when one table is found.
|
|
2542
|
+Callback receive three arguments, C<DBIx::Custom object>, C<table name>,
|
|
2543
|
+C<table information>.
|
|
2544
|
+
|
|
2545
|
+If C<user_table_info> is set, C<each_table> method use C<user_table_info>
|
|
2546
|
+infromation, you can improve the performance of C<each_table> in
|
|
2547
|
+the following way.
|
|
2548
|
+
|
|
2549
|
+ my $table_infos = $dbi->get_table_info(exclude => qr/^system_/);
|
|
2550
|
+ $dbi->user_table_info($table_info);
|
|
2551
|
+ $dbi->each_table(sub { ... });
|
2536
|
2552
|
|
2537
|
2553
|
=head2 C<execute>
|
2538
|
2554
|
|
...
|
...
|
@@ -2742,7 +2758,7 @@ Turn C<into2> type rule off.
|
2742
|
2758
|
|
2743
|
2759
|
=head2 C<get_column_info>
|
2744
|
2760
|
|
2745
|
|
- my $tables = $dbi->get_column_info(exclude_table => qr/^system_/);
|
|
2761
|
+ my $column_infos = $dbi->get_column_info(exclude_table => qr/^system_/);
|
2746
|
2762
|
|
2747
|
2763
|
get column infomation except for one which match C<exclude_table> pattern.
|
2748
|
2764
|
|
...
|
...
|
@@ -2753,7 +2769,7 @@ get column infomation except for one which match C<exclude_table> pattern.
|
2753
|
2769
|
|
2754
|
2770
|
=head2 C<get_table_info>
|
2755
|
2771
|
|
2756
|
|
- my $tables = $dbi->get_table_info(exclude => qr/^system_/);
|
|
2772
|
+ my $table_infos = $dbi->get_table_info(exclude => qr/^system_/);
|
2757
|
2773
|
|
2758
|
2774
|
get table infomation except for one which match C<exclude> pattern.
|
2759
|
2775
|
|
...
|
...
|
@@ -3467,14 +3483,6 @@ is executed, the following SQL is executed.
|
3467
|
3483
|
Execute update statement for all rows.
|
3468
|
3484
|
Options is same as C<update> method.
|
3469
|
3485
|
|
3470
|
|
-=head2 C<update_param>
|
3471
|
|
-
|
3472
|
|
- my $update_param = $dbi->update_param({title => 'a', age => 2});
|
3473
|
|
-
|
3474
|
|
-Create update parameter tag.
|
3475
|
|
-
|
3476
|
|
- set title = :title, author = :author
|
3477
|
|
-
|
3478
|
3486
|
=head2 C<update_or_insert EXPERIMENTAL>
|
3479
|
3487
|
|
3480
|
3488
|
# Where
|