Showing 7 changed files with 133 additions and 130 deletions
+70 -67
lib/DBIx/Custom.pm
... ...
@@ -2276,7 +2276,7 @@ L<DBIx::Custom API reference|http://search.cpan.org/~kimoto/DBIx-Custom/>
2276 2276
 
2277 2277
 =head1 ATTRIBUTES
2278 2278
 
2279
-=head2 C<async_conf> EXPERIMENTAL
2279
+=head2 async_conf EXPERIMENTAL
2280 2280
 
2281 2281
   my $async_conf = $dbi->async_conf;
2282 2282
   $dbi = $dbi->async_conf($conf);
... ...
@@ -2292,7 +2292,7 @@ Setting when C<async> option is used.
2292 2292
 C<prepare_attr> is DBI's C<prepare> method second argument,
2293 2293
 C<fh> is callback that return file handle to watch.
2294 2294
 
2295
-=head2 C<connector>
2295
+=head2 connector
2296 2296
 
2297 2297
   my $connector = $dbi->connector;
2298 2298
   $dbi = $dbi->connector($connector);
... ...
@@ -2322,7 +2322,7 @@ L<DBIx::Connector> is automatically set to C<connector>
2322 2322
 
2323 2323
 Note that L<DBIx::Connector> must be installed.
2324 2324
 
2325
-=head2 C<default_schema> EXPERIMETNAL
2325
+=head2 default_schema EXPERIMETNAL
2326 2326
 
2327 2327
   my $default_schema = $self->default_schema;
2328 2328
   $dbi = $self->default_schema('public');
... ...
@@ -2332,14 +2332,14 @@ type_rule->{into} filter don't work well.
2332 2332
 
2333 2333
 If you set C<default_schema>, type_rule->{into} filter work well.
2334 2334
 
2335
-=head2 C<dsn>
2335
+=head2 dsn
2336 2336
 
2337 2337
   my $dsn = $dbi->dsn;
2338 2338
   $dbi = $dbi->dsn("DBI:mysql:database=dbname");
2339 2339
 
2340 2340
 Data source name, used when C<connect> method is executed.
2341 2341
 
2342
-=head2 C<default_option>
2342
+=head2 default_option
2343 2343
 
2344 2344
   my $default_option = $dbi->default_option;
2345 2345
   $dbi = $dbi->default_option($default_option);
... ...
@@ -2353,7 +2353,7 @@ default to the following values.
2353 2353
     AutoCommit => 1,
2354 2354
   }
2355 2355
 
2356
-=head2 C<exclude_table>
2356
+=head2 exclude_table
2357 2357
 
2358 2358
   my $exclude_table = $dbi->exclude_table;
2359 2359
   $dbi = $dbi->exclude_table(qr/pg_/);
... ...
@@ -2362,21 +2362,21 @@ Excluded table regex.
2362 2362
 C<each_column>, C<each_table>, C<type_rule>,
2363 2363
 and C<setup_model> methods ignore matching tables.
2364 2364
 
2365
-=head2 C<filters>
2365
+=head2 filters
2366 2366
 
2367 2367
   my $filters = $dbi->filters;
2368 2368
   $dbi = $dbi->filters(\%filters);
2369 2369
 
2370 2370
 Filters, registered by C<register_filter> method.
2371 2371
 
2372
-=head2 C<last_sql>
2372
+=head2 last_sql
2373 2373
 
2374 2374
   my $last_sql = $dbi->last_sql;
2375 2375
   $dbi = $dbi->last_sql($last_sql);
2376 2376
 
2377 2377
 Get last successed SQL executed by C<execute> method.
2378 2378
 
2379
-=head2 C<now>
2379
+=head2 now
2380 2380
 
2381 2381
   my $now = $dbi->now;
2382 2382
   $dbi = $dbi->now($now);
... ...
@@ -2395,14 +2395,14 @@ This return the time like C<2011-10-14 05:05:27>.
2395 2395
 This is used by C<insert> method's C<created_at> option and C<updated_at> option,
2396 2396
 and C<update> method's C<updated_at> option.
2397 2397
 
2398
-=head2 C<models>
2398
+=head2 models
2399 2399
 
2400 2400
   my $models = $dbi->models;
2401 2401
   $dbi = $dbi->models(\%models);
2402 2402
 
2403 2403
 Models, included by C<include_model> method.
2404 2404
 
2405
-=head2 C<option>
2405
+=head2 option
2406 2406
 
2407 2407
   my $option = $dbi->option;
2408 2408
   $dbi = $dbi->option($option);
... ...
@@ -2410,20 +2410,20 @@ Models, included by C<include_model> method.
2410 2410
 L<DBI> option, used when C<connect> method is executed.
2411 2411
 Each value in option override the value of C<default_option>.
2412 2412
 
2413
-=head2 C<password>
2413
+=head2 password
2414 2414
 
2415 2415
   my $password = $dbi->password;
2416 2416
   $dbi = $dbi->password('lkj&le`@s');
2417 2417
 
2418 2418
 Password, used when C<connect> method is executed.
2419 2419
 
2420
-=head2 C<query_builder>
2420
+=head2 query_builder
2421 2421
 
2422 2422
   my $builder = $dbi->query_builder;
2423 2423
 
2424 2424
 Creat query builder. This is L<DBIx::Custom::QueryBuilder>.
2425 2425
 
2426
-=head2 C<quote>
2426
+=head2 quote
2427 2427
 
2428 2428
   my quote = $dbi->quote;
2429 2429
   $dbi = $dbi->quote('"');
... ...
@@ -2436,14 +2436,14 @@ You can set quote pair.
2436 2436
 
2437 2437
   $dbi->quote('[]');
2438 2438
 
2439
-=head2 C<result_class>
2439
+=head2 result_class
2440 2440
 
2441 2441
   my $result_class = $dbi->result_class;
2442 2442
   $dbi = $dbi->result_class('DBIx::Custom::Result');
2443 2443
 
2444 2444
 Result class, default to L<DBIx::Custom::Result>.
2445 2445
 
2446
-=head2 C<safety_character>
2446
+=head2 safety_character
2447 2447
 
2448 2448
   my $safety_character = $dbi->safety_character;
2449 2449
   $dbi = $dbi->safety_character($character);
... ...
@@ -2451,7 +2451,7 @@ Result class, default to L<DBIx::Custom::Result>.
2451 2451
 Regex of safety character for table and column name, default to 'a-zA-Z_'.
2452 2452
 Note that you don't have to specify like '[a-zA-Z_]'.
2453 2453
 
2454
-=head2 C<separator>
2454
+=head2 separator
2455 2455
 
2456 2456
   my $separator = $dbi->separator;
2457 2457
   $dbi = $dbi->separator('-');
... ...
@@ -2462,7 +2462,7 @@ and C<select> method's column option.
2462 2462
 
2463 2463
 Default to C<.>.
2464 2464
 
2465
-=head2 C<tag_parse>
2465
+=head2 tag_parse
2466 2466
 
2467 2467
   my $tag_parse = $dbi->tag_parse(0);
2468 2468
   $dbi = $dbi->tag_parse;
... ...
@@ -2470,14 +2470,14 @@ Default to C<.>.
2470 2470
 Enable DEPRECATED tag parsing functionality, default to 1.
2471 2471
 If you want to disable tag parsing functionality, set to 0.
2472 2472
 
2473
-=head2 C<user>
2473
+=head2 user
2474 2474
 
2475 2475
   my $user = $dbi->user;
2476 2476
   $dbi = $dbi->user('Ken');
2477 2477
 
2478 2478
 User name, used when C<connect> method is executed.
2479 2479
 
2480
-=head2 C<user_column_info>
2480
+=head2 user_column_info
2481 2481
 
2482 2482
   my $user_column_info = $dbi->user_column_info;
2483 2483
   $dbi = $dbi->user_column_info($user_column_info);
... ...
@@ -2498,7 +2498,7 @@ Usually, you set return value of C<get_column_info>.
2498 2498
 If C<user_column_info> is set, C<each_column> use C<user_column_info>
2499 2499
 to find column info. this is very fast.
2500 2500
 
2501
-=head2 C<user_table_info>
2501
+=head2 user_table_info
2502 2502
 
2503 2503
   my $user_table_info = $dbi->user_table_info;
2504 2504
   $dbi = $dbi->user_table_info($user_table_info);
... ...
@@ -2524,21 +2524,21 @@ L<DBIx::Custom> inherits all methods from L<Object::Simple>
2524 2524
 and use all methods of L<DBI>
2525 2525
 and implements the following new ones.
2526 2526
 
2527
-=head2 C<available_datatype>
2527
+=head2 available_datatype
2528 2528
 
2529 2529
   print $dbi->available_datatype;
2530 2530
 
2531 2531
 Get available data types. You can use these data types
2532 2532
 in C<type rule>'s C<from1> and C<from2> section.
2533 2533
 
2534
-=head2 C<available_typename>
2534
+=head2 available_typename
2535 2535
 
2536 2536
   print $dbi->available_typename;
2537 2537
 
2538 2538
 Get available type names. You can use these type names in
2539 2539
 C<type_rule>'s C<into1> and C<into2> section.
2540 2540
 
2541
-=head2 C<assign_clause>
2541
+=head2 assign_clause
2542 2542
 
2543 2543
   my $assign_clause = $dbi->assign_clause({title => 'a', age => 2});
2544 2544
 
... ...
@@ -2550,7 +2550,7 @@ This is used to create update clause.
2550 2550
 
2551 2551
   "update book set " . $dbi->assign_clause({title => 'a', age => 2});
2552 2552
 
2553
-=head2 C<async> EXPERIMENTAL
2553
+=head2 async EXPERIMENTAL
2554 2554
 
2555 2555
   async => sub {
2556 2556
     my ($dbi, $result) = @_;
... ...
@@ -2600,7 +2600,7 @@ This is C<mysql> async access example.
2600 2600
 
2601 2601
   $cond->recv;
2602 2602
 
2603
-=head2 C<column>
2603
+=head2 column
2604 2604
 
2605 2605
   my $column = $dbi->column(book => ['author', 'title']);
2606 2606
 
... ...
@@ -2617,7 +2617,7 @@ You can change separator by C<separator> attribute.
2617 2617
   book.author as "book-author",
2618 2618
   book.title as "book-title"
2619 2619
   
2620
-=head2 C<connect>
2620
+=head2 connect
2621 2621
 
2622 2622
   my $dbi = DBIx::Custom->connect(
2623 2623
     dsn => "dbi:mysql:database=dbname",
... ...
@@ -2632,7 +2632,7 @@ L<DBIx::Custom> is a wrapper of L<DBI>.
2632 2632
 C<AutoCommit> and C<RaiseError> options are true, 
2633 2633
 and C<PrintError> option is false by default.
2634 2634
 
2635
-=head2 C<count>
2635
+=head2 count
2636 2636
 
2637 2637
   my $count = $dbi->count(table => 'book');
2638 2638
 
... ...
@@ -2640,7 +2640,7 @@ Get rows count.
2640 2640
 
2641 2641
 Options is same as C<select> method's ones.
2642 2642
 
2643
-=head2 C<create_model>
2643
+=head2 create_model
2644 2644
 
2645 2645
   my $model = $dbi->create_model(
2646 2646
     table => 'book',
... ...
@@ -2655,14 +2655,14 @@ the module is also used from C<model> method.
2655 2655
 
2656 2656
  $dbi->model('book')->select(...);
2657 2657
 
2658
-=head2 C<dbh>
2658
+=head2 dbh
2659 2659
 
2660 2660
   my $dbh = $dbi->dbh;
2661 2661
 
2662 2662
 Get L<DBI> database handle. if C<connector> is set, you can get
2663 2663
 database handle through C<connector> object.
2664 2664
 
2665
-=head2 C<delete>
2665
+=head2 delete
2666 2666
 
2667 2667
   $dbi->delete(table => 'book', where => {title => 'Perl'});
2668 2668
 
... ...
@@ -2715,14 +2715,14 @@ Same as C<select> method's C<where> option.
2715 2715
 
2716 2716
 =back
2717 2717
 
2718
-=head2 C<delete_all>
2718
+=head2 delete_all
2719 2719
 
2720 2720
   $dbi->delete_all(table => $table);
2721 2721
 
2722 2722
 Execute delete statement for all rows.
2723 2723
 Options is same as C<delete>.
2724 2724
 
2725
-=head2 C<each_column>
2725
+=head2 each_column
2726 2726
 
2727 2727
   $dbi->each_column(
2728 2728
     sub {
... ...
@@ -2749,7 +2749,7 @@ the following way.
2749 2749
   $dbi->user_column_info($column_info);
2750 2750
   $dbi->each_column(sub { ... });
2751 2751
 
2752
-=head2 C<each_table>
2752
+=head2 each_table
2753 2753
 
2754 2754
   $dbi->each_table(
2755 2755
     sub {
... ...
@@ -2772,7 +2772,7 @@ the following way.
2772 2772
   $dbi->user_table_info($table_info);
2773 2773
   $dbi->each_table(sub { ... });
2774 2774
 
2775
-=head2 C<execute>
2775
+=head2 execute
2776 2776
 
2777 2777
   my $result = $dbi->execute(
2778 2778
     "select * from book where title = :title and author like :author",
... ...
@@ -2966,7 +2966,7 @@ Turn C<into2> type rule off.
2966 2966
 
2967 2967
 =back
2968 2968
 
2969
-=head2 C<get_column_info>
2969
+=head2 get_column_info
2970 2970
 
2971 2971
   my $column_infos = $dbi->get_column_info(exclude_table => qr/^system_/);
2972 2972
 
... ...
@@ -2977,7 +2977,7 @@ get column infomation except for one which match C<exclude_table> pattern.
2977 2977
     {table => 'author', column => 'name' info => {...}}
2978 2978
   ]
2979 2979
 
2980
-=head2 C<get_table_info>
2980
+=head2 get_table_info
2981 2981
 
2982 2982
   my $table_infos = $dbi->get_table_info(exclude => qr/^system_/);
2983 2983
 
... ...
@@ -2990,7 +2990,7 @@ get table infomation except for one which match C<exclude> pattern.
2990 2990
 
2991 2991
 You can set this value to C<user_table_info>.
2992 2992
 
2993
-=head2 C<helper>
2993
+=head2 helper
2994 2994
 
2995 2995
   $dbi->helper(
2996 2996
     find_or_create   => sub {
... ...
@@ -3005,7 +3005,7 @@ Register helper. These helper is called directly from L<DBIx::Custom> object.
3005 3005
 
3006 3006
   $dbi->find_or_create;
3007 3007
 
3008
-=head2 C<insert>
3008
+=head2 insert
3009 3009
 
3010 3010
   $dbi->insert({title => 'Perl', author => 'Ken'}, table  => 'book');
3011 3011
 
... ...
@@ -3114,7 +3114,7 @@ is executed, the following SQL is executed.
3114 3114
 
3115 3115
 =over 4
3116 3116
 
3117
-=head2 C<include_model>
3117
+=head2 include_model
3118 3118
 
3119 3119
   $dbi->include_model('MyModel');
3120 3120
 
... ...
@@ -3167,7 +3167,7 @@ You can include full-qualified table name like C<main.book>
3167 3167
 
3168 3168
 See L<DBIx::Custom::Model> to know model features.
3169 3169
 
3170
-=head2 C<like_value>
3170
+=head2 like_value
3171 3171
 
3172 3172
   my $like_value = $dbi->like_value
3173 3173
 
... ...
@@ -3175,13 +3175,13 @@ Code reference which return a value for the like value.
3175 3175
 
3176 3176
   sub { "%$_[0]%" }
3177 3177
 
3178
-=head2 C<mapper>
3178
+=head2 mapper
3179 3179
 
3180 3180
   my $mapper = $dbi->mapper(param => $param);
3181 3181
 
3182 3182
 Create a new L<DBIx::Custom::Mapper> object.
3183 3183
 
3184
-=head2 C<merge_param>
3184
+=head2 merge_param
3185 3185
 
3186 3186
   my $param = $dbi->merge_param({key1 => 1}, {key1 => 1, key2 => 2});
3187 3187
 
... ...
@@ -3191,14 +3191,14 @@ Merge parameters. The following new parameter is created.
3191 3191
 
3192 3192
 If same keys contains, the value is converted to array reference.
3193 3193
 
3194
-=head2 C<model>
3194
+=head2 model
3195 3195
 
3196 3196
   my $model = $dbi->model('book');
3197 3197
 
3198 3198
 Get a L<DBIx::Custom::Model> object
3199 3199
 create by C<create_model> or C<include_model>
3200 3200
 
3201
-=head2 C<mycolumn>
3201
+=head2 mycolumn
3202 3202
 
3203 3203
   my $column = $dbi->mycolumn(book => ['author', 'title']);
3204 3204
 
... ...
@@ -3207,7 +3207,7 @@ Create column clause for myself. The follwoing column clause is created.
3207 3207
   book.author as author,
3208 3208
   book.title as title
3209 3209
 
3210
-=head2 C<new>
3210
+=head2 new
3211 3211
 
3212 3212
   my $dbi = DBIx::Custom->new(
3213 3213
     dsn => "dbi:mysql:database=dbname",
... ...
@@ -3218,26 +3218,26 @@ Create column clause for myself. The follwoing column clause is created.
3218 3218
 
3219 3219
 Create a new L<DBIx::Custom> object.
3220 3220
 
3221
-=head2 C<not_exists>
3221
+=head2 not_exists
3222 3222
 
3223 3223
   my $not_exists = $dbi->not_exists;
3224 3224
 
3225 3225
 DBIx::Custom::NotExists object, indicating the column is not exists.
3226 3226
 This is used in C<param> of L<DBIx::Custom::Where> .
3227 3227
 
3228
-=head2 C<order>
3228
+=head2 order
3229 3229
 
3230 3230
   my $order = $dbi->order;
3231 3231
 
3232 3232
 Create a new L<DBIx::Custom::Order> object.
3233 3233
 
3234
-=head2 C<q>
3234
+=head2 q
3235 3235
 
3236 3236
   my $quooted = $dbi->q("title");
3237 3237
 
3238 3238
 Quote string by value of C<quote>.
3239 3239
 
3240
-=head2 C<register_filter>
3240
+=head2 register_filter
3241 3241
 
3242 3242
   $dbi->register_filter(
3243 3243
     # Time::Piece object to database DATE format
... ...
@@ -3254,7 +3254,7 @@ Quote string by value of C<quote>.
3254 3254
   
3255 3255
 Register filters, used by C<filter> option of many methods.
3256 3256
 
3257
-=head2 C<select>
3257
+=head2 select
3258 3258
 
3259 3259
   my $result = $dbi->select(
3260 3260
     column => ['author', 'title'],
... ...
@@ -3437,14 +3437,14 @@ See also L<DBIx::Custom::Where> to know how to create where clause.
3437 3437
   
3438 3438
 =back
3439 3439
 
3440
-=head2 C<setup_model>
3440
+=head2 setup_model
3441 3441
 
3442 3442
   $dbi->setup_model;
3443 3443
 
3444 3444
 Setup all model objects.
3445 3445
 C<columns> of model object is automatically set, parsing database information.
3446 3446
 
3447
-=head2 C<type_rule>
3447
+=head2 type_rule
3448 3448
 
3449 3449
   $dbi->type_rule(
3450 3450
     into1 => {
... ...
@@ -3518,7 +3518,7 @@ You can also specify multiple types at once.
3518 3518
     ],
3519 3519
   );
3520 3520
 
3521
-=head2 C<update>
3521
+=head2 update
3522 3522
 
3523 3523
   $dbi->update({title => 'Perl'}, table  => 'book', where  => {id => 4});
3524 3524
 
... ...
@@ -3602,15 +3602,15 @@ C<now> attribute.
3602 3602
 
3603 3603
 =back
3604 3604
 
3605
-=head2 C<update_all>
3605
+=head2 update_all
3606 3606
 
3607 3607
   $dbi->update_all({title => 'Perl'}, table => 'book', );
3608 3608
 
3609 3609
 Execute update statement for all rows.
3610 3610
 Options is same as C<update> method.
3611 3611
 
3612
-=head2 C<update_or_insert>
3613
-  
3612
+=head2 update_or_insert
3613
+
3614 3614
   # ID
3615 3615
   $dbi->update_or_insert(
3616 3616
     {title => 'Perl'},
... ...
@@ -3663,7 +3663,7 @@ you can use C<option> option.
3663 3663
 select method option,
3664 3664
 select method is used to check the row is already exists.
3665 3665
 
3666
-=head2 C<show_datatype>
3666
+=head2 show_datatype
3667 3667
 
3668 3668
   $dbi->show_datatype($table);
3669 3669
 
... ...
@@ -3675,13 +3675,13 @@ Show data type of the columns of specified table.
3675 3675
 
3676 3676
 This data type is used in C<type_rule>'s C<from1> and C<from2>.
3677 3677
 
3678
-=head2 C<show_tables>
3678
+=head2 show_tables
3679 3679
 
3680 3680
   $dbi->show_tables;
3681 3681
 
3682 3682
 Show tables.
3683 3683
 
3684
-=head2 C<show_typename>
3684
+=head2 show_typename
3685 3685
 
3686 3686
   $dbi->show_typename($table);
3687 3687
 
... ...
@@ -3693,7 +3693,7 @@ Show type name of the columns of specified table.
3693 3693
 
3694 3694
 This type name is used in C<type_rule>'s C<into1> and C<into2>.
3695 3695
 
3696
-=head2 C<values_clause>
3696
+=head2 values_clause
3697 3697
 
3698 3698
   my $values_clause = $dbi->values_clause({title => 'a', age => 2});
3699 3699
 
... ...
@@ -3705,7 +3705,7 @@ You can use this in insert statement.
3705 3705
 
3706 3706
   my $insert_sql = "insert into book $values_clause";
3707 3707
 
3708
-=head2 C<where>
3708
+=head2 where
3709 3709
 
3710 3710
   my $where = $dbi->where(
3711 3711
     clause => ['and', 'title = :title', 'author = :author'],
... ...
@@ -3717,27 +3717,27 @@ See L<DBIx::Custom::Where> to know how to create where clause.
3717 3717
 
3718 3718
 =head1 ENVIRONMENTAL VARIABLES
3719 3719
 
3720
-=head2 C<DBIX_CUSTOM_DEBUG>
3720
+=head2 DBIX_CUSTOM_DEBUG
3721 3721
 
3722 3722
 If environment variable C<DBIX_CUSTOM_DEBUG> is set to true,
3723 3723
 executed SQL and bind values are printed to STDERR.
3724 3724
 
3725
-=head2 C<DBIX_CUSTOM_DEBUG_ENCODING>
3725
+=head2 DBIX_CUSTOM_DEBUG_ENCODING
3726 3726
 
3727 3727
 DEBUG output encoding. Default to UTF-8.
3728 3728
 
3729
-=head2 C<DBIX_CUSTOM_DISABLE_MODEL_EXECUTE>
3729
+=head2 DBIX_CUSTOM_DISABLE_MODEL_EXECUTE
3730 3730
 
3731 3731
 If you set DBIX_CUSTOM_DISABLE_MODEL_EXECUTE to 1,
3732 3732
 L<DBIx::Custom::Model> execute method call L<DBIx::Custom> execute.
3733 3733
 
3734
-=head2 C<DBIX_CUSTOM_SUPPRESS_DEPRECATION>
3734
+=head2 DBIX_CUSTOM_SUPPRESS_DEPRECATION
3735 3735
 
3736 3736
   $ENV{DBIX_CUSTOM_SUPPRESS_DEPRECATION} = '0.25';
3737 3737
 
3738 3738
 Suppress deprecation warnings before specified version.
3739 3739
 
3740
-=head2 C<DBIX_CUSTOM_TAG_PARSE>
3740
+=head2 DBIX_CUSTOM_TAG_PARSE
3741 3741
 
3742 3742
 If you set DBIX_CUSTOM_TAG_PARSE to 0, tag parsing is off.
3743 3743
 
... ...
@@ -3853,6 +3853,9 @@ L<DBIx::Custom::Result>
3853 3853
   remove_end_filter # will be removed at 2017/1/1
3854 3854
   remove_filter # will be removed at 2017/1/1
3855 3855
   default_filter # will be removed at 2017/1/1
3856
+  
3857
+  # Options
3858
+  kv method's multi option (from 0.28) # will be removed at 2018/3/1
3856 3859
 
3857 3860
 L<DBIx::Custom::Tag>
3858 3861
 
+8 -8
lib/DBIx/Custom/Mapper.pm
... ...
@@ -148,21 +148,21 @@ DBIx::Custom::Mapper - Mapper of parameter
148 148
 
149 149
 =head1 ATTRIBUTES
150 150
 
151
-=head2 C<param>
151
+=head2 param
152 152
 
153 153
   my $param = $mapper->param;
154 154
   $mapper = $mapper->param({title => 'Perl', author => 'Ken'});
155 155
 
156 156
 Parameter.
157 157
 
158
-=head2 C<pass>
158
+=head2 pass
159 159
 
160 160
   my $pass = $mapper->pass;
161 161
   $mapper = $mapper->pass([qw/title author/]);
162 162
 
163 163
 the key and value is copied without change when C<map> method is executed.
164 164
 
165
-=head2 C<condition>
165
+=head2 condition
166 166
 
167 167
   my $condition = $mapper->condition;
168 168
   $mapper = $mapper->condition('exists');
... ...
@@ -173,25 +173,25 @@ You can set the following values to C<condition>.
173 173
 
174 174
 =over 4
175 175
 
176
-=item * C<exists>
176
+=item * exists
177 177
  
178 178
   condition => 'exists'
179 179
 
180 180
 If key exists, key and value is mapped.
181 181
 
182
-=item * C<defined>
182
+=item * defined
183 183
 
184 184
   condition => 'defined';
185 185
 
186 186
 If value is defined, key and value is mapped.
187 187
 
188
-=item * C<length>
188
+=item * length
189 189
 
190 190
   condition => 'length';
191 191
 
192 192
 If value is defined and has length, key and value is mapped.
193 193
 
194
-=item * C<code reference>
194
+=item * code reference
195 195
 
196 196
   condition => sub { defined $_[0] }
197 197
 
... ...
@@ -203,7 +203,7 @@ The subroutine return true, key and value is mapped.
203 203
 L<DBIx::Custom::Mapper> inherits all methods from L<Object::Simple>
204 204
 and implements the following new ones.
205 205
 
206
-=head2 C<map>
206
+=head2 map
207 207
 
208 208
   my $new_param = $mapper->map(
209 209
     price => {key => 'book.price'}
+18 -18
lib/DBIx/Custom/Model.pm
... ...
@@ -181,21 +181,21 @@ my $model = DBIx::Custom::Model->new(table => 'books');
181 181
 
182 182
 =head1 ATTRIBUTES
183 183
 
184
-=head2 C<dbi>
184
+=head2 dbi
185 185
 
186 186
   my $dbi = $model->dbi;
187 187
   $model = $model->dbi($dbi);
188 188
 
189 189
 L<DBIx::Custom> object.
190 190
 
191
-=head2 C<ctime>
191
+=head2 ctime
192 192
 
193 193
   my $ctime = $model->ctime;
194 194
   $model = $model->ctime('created_time');
195 195
 
196 196
 Create timestamp column, this is passed to C<insert> or C<update> method.
197 197
 
198
-=head2 C<join>
198
+=head2 join
199 199
 
200 200
   my $join = $model->join;
201 201
   $model = $model->join(
... ...
@@ -204,7 +204,7 @@ Create timestamp column, this is passed to C<insert> or C<update> method.
204 204
   
205 205
 Join clause, this value is passed to C<select> method.
206 206
 
207
-=head2 C<primary_key>
207
+=head2 primary_key
208 208
 
209 209
   my $primary_key = $model->primary_key;
210 210
   $model = $model->primary_key(['id', 'number']);
... ...
@@ -212,14 +212,14 @@ Join clause, this value is passed to C<select> method.
212 212
 Primary key,this is passed to C<insert>, C<update>,
213 213
 C<delete>, and C<select> method.
214 214
 
215
-=head2 C<table>
215
+=head2 table
216 216
 
217 217
   my $model = $model->table;
218 218
   $model = $model->table('book');
219 219
 
220 220
 Table name, this is passed to C<select> method.
221 221
 
222
-=head2 C<bind_type>
222
+=head2 bind_type
223 223
 
224 224
   my $type = $model->bind_type;
225 225
   $model = $model->bind_type(['image' => DBI::SQL_BLOB]);
... ...
@@ -228,7 +228,7 @@ Database data type, this is used as type optioon of C<insert>,
228 228
 C<update>, C<update_all>, C<delete>, C<delete_all>,
229 229
 and C<select> method
230 230
 
231
-=head2 C<mtime>
231
+=head2 mtime
232 232
 
233 233
   my $mtime = $model->mtime;
234 234
   $model = $model->mtime('modified_time');
... ...
@@ -241,7 +241,7 @@ L<DBIx::Custom::Model> inherits all methods from L<Object::Simple>,
241 241
 and you can use all methods of L<DBIx::Custom> and L<DBI>
242 242
 and implements the following new ones.
243 243
 
244
-=head2 C<count>
244
+=head2 count
245 245
 
246 246
   my $count = $model->count;
247 247
 
... ...
@@ -249,28 +249,28 @@ Get rows count.
249 249
 
250 250
 Options is same as C<select> method's ones.
251 251
 
252
-=head2 C<delete>
252
+=head2 delete
253 253
 
254 254
   $model->delete(...);
255 255
   
256 256
 Same as C<delete> of L<DBIx::Custom> except that
257 257
 you don't have to specify options if you set attribute in model.
258 258
 
259
-=head2 C<delete_all>
259
+=head2 delete_all
260 260
 
261 261
   $model->delete_all(...);
262 262
   
263 263
 Same as C<delete_all> of L<DBIx::Custom> except that
264 264
 you don't have to specify options if you set attribute in model.
265 265
 
266
-=head2 C<insert>
266
+=head2 insert
267 267
 
268 268
   $model->insert(...);
269 269
   
270 270
 Same as C<insert> of L<DBIx::Custom> except that
271 271
 you don't have to specify options if you set attribute in model.
272 272
 
273
-=head2 C<helper>
273
+=head2 helper
274 274
 
275 275
   $model->helper(
276 276
     update_or_insert => sub {
... ...
@@ -290,7 +290,7 @@ Register helper. These helper is called directly from L<DBIx::Custom::Model> obj
290 290
   $model->update_or_insert;
291 291
   $model->find_or_create;
292 292
 
293
-=head2 C<mycolumn>
293
+=head2 mycolumn
294 294
 
295 295
   my $column = $self->mycolumn;
296 296
   my $column = $self->mycolumn(book => ['author', 'title']);
... ...
@@ -304,34 +304,34 @@ Create column clause for myself. The follwoing column clause is created.
304 304
 If table name is ommited, C<table> attribute of the model is used.
305 305
 If column names is omitted, C<columns> attribute of the model is used.
306 306
 
307
-=head2 C<new>
307
+=head2 new
308 308
 
309 309
   my $model = DBIx::Custom::Model->new;
310 310
 
311 311
 Create a L<DBIx::Custom::Model> object.
312 312
 
313
-=head2 C<select>
313
+=head2 select
314 314
 
315 315
   $model->select(...);
316 316
   
317 317
 Same as C<select> of L<DBIx::Custom> except that
318 318
 you don't have to specify options if you set attribute in model.
319 319
 
320
-=head2 C<update>
320
+=head2 update
321 321
 
322 322
   $model->update(...);
323 323
   
324 324
 Same as C<update> of L<DBIx::Custom> except that
325 325
 you don't have to specify options if you set attribute in model.
326 326
 
327
-=head2 C<update_all>
327
+=head2 update_all
328 328
 
329 329
   $model->update_all(param => \%param);
330 330
   
331 331
 Same as C<update_all> of L<DBIx::Custom> except that
332 332
 you don't have to specify options if you set attribute in model.
333 333
 
334
-=head2 C<update_or_insert>
334
+=head2 update_or_insert
335 335
 
336 336
   $model->update_or_insert(...);
337 337
   
+1 -1
lib/DBIx/Custom/NotExists.pm
... ...
@@ -17,7 +17,7 @@ DBIx::Custom::NotExists - Not exsits object
17 17
 
18 18
 =head1 METHODS
19 19
 
20
-=head2 C<singleton>
20
+=head2 singleton
21 21
 
22 22
   $not_exists = DBIx::Custom::NotExists->singleton;
23 23
 
+4 -4
lib/DBIx/Custom/Order.pm
... ...
@@ -62,14 +62,14 @@ DBIx::Custom::Order - Order by clause
62 62
   
63 63
 =head1 ATTRIBUTES
64 64
 
65
-=head2 C<dbi>
65
+=head2 dbi
66 66
 
67 67
   my $dbi = $order->dbi;
68 68
   $order = $order->dbi($dbi);
69 69
 
70 70
 L<DBIx::Custom> object.
71 71
 
72
-=head2 C<orders>
72
+=head2 orders
73 73
 
74 74
   my $orders = $result->orders;
75 75
   $result = $result->orders(\%orders);
... ...
@@ -81,13 +81,13 @@ Parts of order by clause
81 81
 L<DBIx::Custom::Result> inherits all methods from L<Object::Simple>
82 82
 and implements the following new ones.
83 83
 
84
-=head2 C<prepend>
84
+=head2 prepend
85 85
 
86 86
   $order->prepend('title', 'author desc');
87 87
 
88 88
 Prepend order parts to C<orders>.
89 89
 
90
-=head2 C<to_string>
90
+=head2 to_string
91 91
 
92 92
   my $order_by = $order->to_string;
93 93
 
+28 -28
lib/DBIx/Custom/Result.pm
... ...
@@ -528,14 +528,14 @@ DBIx::Custom::Result - Result of select statement
528 528
 
529 529
 =head1 ATTRIBUTES
530 530
 
531
-=head2 C<dbi>
531
+=head2 dbi
532 532
 
533 533
   my $dbi = $result->dbi;
534 534
   $result = $result->dbi($dbi);
535 535
 
536 536
 L<DBIx::Custom> object.
537 537
 
538
-=head2 C<sth>
538
+=head2 sth
539 539
 
540 540
   my $sth = $reuslt->sth
541 541
   $result = $result->sth($sth);
... ...
@@ -547,63 +547,63 @@ Statement handle of L<DBI>.
547 547
 L<DBIx::Custom::Result> inherits all methods from L<Object::Simple>
548 548
 and implements the following new ones.
549 549
 
550
-=head2 C<all>
550
+=head2 all
551 551
 
552 552
   my $rows = $result->all;
553 553
 
554
-Same as C<fetch_hash_all>.
554
+Same as fetch_hash_all.
555 555
 
556
-=head2 C<fetch>
556
+=head2 fetch
557 557
 
558 558
   my $row = $result->fetch;
559 559
 
560 560
 Fetch a row and put it into array reference.
561 561
 
562
-=head2 C<fetch_all>
562
+=head2 fetch_all
563 563
 
564 564
   my $rows = $result->fetch_all;
565 565
 
566 566
 Fetch all rows and put them into array of array reference.
567 567
 
568
-=head2 C<fetch_one>
568
+=head2 fetch_one
569 569
 
570 570
   my $row = $result->fetch_one;
571 571
 
572 572
 Fetch only a first row and put it into array reference,
573 573
 and finish statment handle.
574 574
 
575
-=head2 C<fetch_hash>
575
+=head2 fetch_hash
576 576
 
577 577
   my $row = $result->fetch_hash;
578 578
 
579 579
 Fetch a row and put it into hash reference.
580 580
 
581
-=head2 C<fetch_hash_all>
581
+=head2 fetch_hash_all
582 582
 
583 583
   my $rows = $result->fetch_hash_all;
584 584
 
585 585
 Fetch all rows and put them into array of hash reference.
586 586
 
587
-=head2 C<fetch_hash_one>
587
+=head2 fetch_hash_one
588 588
   
589 589
   my $row = $result->fetch_hash_one;
590 590
 
591 591
 Fetch only a first row and put it into hash reference,
592 592
 and finish statment handle.
593 593
 
594
-=head2 C<fetch_hash_multi>
594
+=head2 fetch_hash_multi
595 595
 
596 596
   my $rows = $result->fetch_hash_multi(5);
597 597
   
598 598
 Fetch multiple rows and put them into array of hash reference.
599 599
 
600
-=head2 C<fetch_multi>
600
+=head2 fetch_multi
601 601
 
602 602
   my $rows = $result->fetch_multi(5);
603 603
   
604 604
 Fetch multiple rows and put them into array of array reference.
605 605
 
606
-=head2 C<filter>
606
+=head2 filter
607 607
 
608 608
   $result->filter(title  => sub { uc $_[0] }, author => 'to_upper');
609 609
   $result->filter([qw/title author/] => 'to_upper');
... ...
@@ -612,7 +612,7 @@ Set filter for column.
612 612
 You can use subroutine or filter name as filter.
613 613
 This filter is executed after C<type_rule> filter.
614 614
 
615
-=head2 C<flat>
615
+=head2 flat
616 616
 
617 617
   my @list = $result->flat;
618 618
 
... ...
@@ -628,7 +628,7 @@ You can create key-value pair easily.
628 628
 
629 629
   my %titles = $dbi->select(['id', 'title'])->flat;
630 630
 
631
-=head2 C<kv>
631
+=head2 kv
632 632
 
633 633
   my $key_value = $result->kv;
634 634
 
... ...
@@ -652,7 +652,7 @@ C<kv> method return the following data.
652 652
 
653 653
 First column value become key.
654 654
 
655
-=head2 C<kvs>
655
+=head2 kvs
656 656
 
657 657
   my $key_values = $result->kvs;
658 658
 
... ...
@@ -682,19 +682,19 @@ C<kvs> method return the following data.
682 682
     ]
683 683
   }
684 684
 
685
-=head2 C<header>
685
+=head2 header
686 686
 
687 687
   my $header = $result->header;
688 688
 
689 689
 Get header column names.
690 690
 
691
-=head2 C<one>
691
+=head2 one
692 692
 
693 693
   my $row = $result->one;
694 694
 
695 695
 Alias for C<fetch_hash_one>.
696 696
 
697
-=head2 C<stash>
697
+=head2 stash
698 698
 
699 699
   my $stash = $result->stash;
700 700
   my $foo = $result->stash->{foo};
... ...
@@ -702,7 +702,7 @@ Alias for C<fetch_hash_one>.
702 702
 
703 703
 Stash is hash reference to save some data.
704 704
 
705
-=head2 C<type_rule>
705
+=head2 type_rule
706 706
   
707 707
   # Merge type rule
708 708
   $result->type_rule(
... ...
@@ -722,49 +722,49 @@ Stash is hash reference to save some data.
722 722
 
723 723
 This is same as L<DBIx::Custom>'s C<type_rule>'s <from>.
724 724
 
725
-=head2 C<type_rule_off>
725
+=head2 type_rule_off
726 726
 
727 727
   $result = $result->type_rule_off;
728 728
 
729 729
 Turn C<from1> and C<from2> type rule off.
730 730
 By default, type rule is on.
731 731
 
732
-=head2 C<type_rule_on>
732
+=head2 type_rule_on
733 733
 
734 734
   $result = $result->type_rule_on;
735 735
 
736 736
 Turn C<from1> and C<from2> type rule on.
737 737
 By default, type rule is on.
738 738
 
739
-=head2 C<type_rule1_off>
739
+=head2 type_rule1_off
740 740
 
741 741
   $result = $result->type_rule1_off;
742 742
 
743 743
 Turn C<from1> type rule off.
744 744
 By default, type rule is on.
745 745
 
746
-=head2 C<type_rule1_on>
746
+=head2 type_rule1_on
747 747
 
748 748
   $result = $result->type_rule1_on;
749 749
 
750 750
 Turn C<from1> type rule on.
751 751
 By default, type rule is on.
752 752
 
753
-=head2 C<type_rule2_off>
753
+=head2 type_rule2_off
754 754
 
755 755
   $result = $result->type_rule2_off;
756 756
 
757 757
 Turn C<from2> type rule off.
758 758
 By default, type rule is on.
759 759
 
760
-=head2 C<type_rule2_on>
760
+=head2 type_rule2_on
761 761
 
762 762
   $result = $result->type_rule2_on;
763 763
 
764 764
 Turn C<from2> type rule on.
765 765
 By default, type rule is on.
766 766
 
767
-=head2 C<value>
767
+=head2 value
768 768
 
769 769
   my $value = $result->value;
770 770
 
... ...
@@ -776,7 +776,7 @@ This is almost same as the following one.
776 776
 
777 777
   my $count = $dbi->select('count(*)')->fetch_one->[0];
778 778
 
779
-=head2 C<values>
779
+=head2 values
780 780
 
781 781
   my $values = $result->values;
782 782
 
+4 -4
lib/DBIx/Custom/Where.pm
... ...
@@ -209,7 +209,7 @@ DBIx::Custom::Where - Where clause
209 209
 
210 210
 =head1 ATTRIBUTES
211 211
 
212
-=head2 C<clause>
212
+=head2 clause
213 213
 
214 214
   my $clause = $where->clause;
215 215
   $where = $where->clause(
... ...
@@ -224,7 +224,7 @@ If all parameter names is exists.
224 224
 
225 225
   where title = :title and ( date < :date or date > :date )
226 226
 
227
-=head2 C<param>
227
+=head2 param
228 228
 
229 229
   my $param = $where->param;
230 230
   $where = $where->param({
... ...
@@ -232,7 +232,7 @@ If all parameter names is exists.
232 232
     date => ['2010-11-11', '2011-03-05'],
233 233
   });
234 234
 
235
-=head2 C<dbi>
235
+=head2 dbi
236 236
 
237 237
   my $dbi = $where->dbi;
238 238
   $where = $where->dbi($dbi);
... ...
@@ -244,7 +244,7 @@ L<DBIx::Custom> object.
244 244
 L<DBIx::Custom::Where> inherits all methods from L<Object::Simple>
245 245
 and implements the following new ones.
246 246
 
247
-=head2 C<to_string>
247
+=head2 to_string
248 248
 
249 249
   $where->to_string;
250 250