Showing 1 changed files with 15 additions and 15 deletions
+15 -15
lib/DBIx/Custom.pm
... ...
@@ -626,7 +626,7 @@ You can call all methods of L<DBI>
626 626
 =head2 C<filters>
627 627
 
628 628
     my $filters = $dbi->filters;
629
-    $dbi        = $dbi->filters({%filters});
629
+    $dbi        = $dbi->filters(\%filters);
630 630
 
631 631
 Filter functions.
632 632
 By default, "encode_utf8" and "decode_utf8" is registered.
... ...
@@ -682,9 +682,9 @@ and "PrintError" option is false by default.
682 682
 =head2 C<insert>
683 683
 
684 684
     $affected = $dbi->insert(table  => $table, 
685
-                             param  => {%param},
685
+                             param  => \%param,
686 686
                              append => $append,
687
-                             filter => {%filter});
687
+                             filter => \%filter);
688 688
 
689 689
 Insert row.
690 690
 Retrun value is the count of affected rows.
... ...
@@ -699,10 +699,10 @@ B<Example:>
699 699
 =head2 C<update>
700 700
 
701 701
     $affected = $dbi->update(table  => $table, 
702
-                             param  => {%params},
703
-                             where  => {%where},
702
+                             param  => \%params,
703
+                             where  => \%where,
704 704
                              append => $append,
705
-                             filter => {%filter})
705
+                             filter => \%filter)
706 706
 
707 707
 Update rows.
708 708
 Retrun value is the count of affected rows.
... ...
@@ -718,8 +718,8 @@ B<Example:>
718 718
 =head2 C<update_all>
719 719
 
720 720
     $affected = $dbi->update_all(table  => $table, 
721
-                                 param  => {%params},
722
-                                 filter => {%filter},
721
+                                 param  => \%params,
722
+                                 filter => \%filter,
723 723
                                  append => $append);
724 724
 
725 725
 Update all rows.
... ...
@@ -734,9 +734,9 @@ B<Example:>
734 734
 =head2 C<delete>
735 735
 
736 736
     $affected = $dbi->delete(table  => $table,
737
-                             where  => {%where},
737
+                             where  => \%where,
738 738
                              append => $append,
739
-                             filter => {%filter});
739
+                             filter => \%filter);
740 740
 
741 741
 Delete rows.
742 742
 Retrun value is the count of affected rows.
... ...
@@ -763,10 +763,10 @@ B<Example:>
763 763
     
764 764
     $result = $dbi->select(table    => $table,
765 765
                            column   => [@column],
766
-                           where    => {%where},
766
+                           where    => \%where,
767 767
                            append   => $append,
768
-                           relation => {%relation},
769
-                           filter   => {%filter});
768
+                           relation => \%relation,
769
+                           filter   => \%filter);
770 770
 
771 771
 Select rows.
772 772
 Return value is the instance of L<DBIx::Custom::Result>.
... ...
@@ -806,8 +806,8 @@ using L<DBIx::Custom::QueryBuilder>.
806 806
 
807 807
 =head2 C<execute>
808 808
 
809
-    $result = $dbi->execute($query,    param => $params, filter => {%filter});
810
-    $result = $dbi->execute($source, param => $params, filter => {%filter});
809
+    $result = $dbi->execute($query,  param => $params, filter => \%filter);
810
+    $result = $dbi->execute($source, param => $params, filter => \%filter);
811 811
 
812 812
 Execute the instace of L<DBIx::Custom::Query> or
813 813
 the string written by SQL template.