Showing 2 changed files with 1 additions and 52 deletions
-51
lib/DBIx/Custom/Guide.pod
... ...
@@ -257,12 +257,6 @@ You can specify C<filter> at C<execute>.
257 257
     $dbi->execute($sql, {title => 'Perl', author => '%Ken%'}
258 258
                   filter => {title => 'to_something');
259 259
 
260
-Note that at C<execute> the filter applied by C<apply_filter>
261
-don't has effective to columns.
262
-You have to use C<table> option
263
-
264
-    $dbi->execute($sql, table => ['author', 'book']);
265
-
266 260
 =head3 Manipulate same name's columns
267 261
 
268 262
 It is ok if there are same name's columns.
... ...
@@ -539,15 +533,6 @@ You can set primary key to model.
539 533
 Primary key is used by C<insert>, C<update>, C<delete>,
540 534
 and C<select> methods.
541 535
 
542
-by C<filter> you can define filters applied by C<apply_filter>
543
-
544
-    $model->filter({
545
-        title  => {out => ..., in => ..., end => ...},
546
-        author => {out => ..., in => ..., end => ...}
547
-    });
548
-
549
-This filters is applied when C<include_model> is called.
550
-
551 536
 You can set column names
552 537
 
553 538
     $model->columns(['id', 'number_id']);
... ...
@@ -563,42 +548,6 @@ You can set C<join>
563 548
 
564 549
 C<join> is used by C<select> method.
565 550
 
566
-=head2 Class name, Model name, Table name
567
-
568
-Class name, model name, and table name is a little different.
569
-Generally Class name is model name, and table name is model name.
570
-
571
-    CLASS        MODEL              TABLE
572
-    book         (CLASS) -> book    (MODEL) -> book
573
-
574
-You can change model name.
575
-
576
-    package MyModel::book;
577
-    use MyModel -base;
578
-    
579
-    has name => 'book_model';
580
-
581
-    CLASS        MODEL         TABLE
582
-    book         book_model    (MODEL) -> book_model
583
-
584
-Model name is the name used by L<model> of L<DBIx::Custom>.
585
-
586
-    $dbi->model('book_model');
587
-
588
-You can change table name.
589
-
590
-    package MyModel::book;
591
-    use MyModel -base;
592
-    
593
-    has table => 'book_table';
594
-
595
-    CLASS        MODEL              TABLE
596
-    book         (CLASS) -> book    book_table
597
-
598
-Table name is the table really accessed.
599
-
600
-    $dbi->model('book')->insert(...); # access to "book_table"
601
-
602 551
 =head2 Create column clause automatically : mycolumn, column
603 552
 
604 553
 To create column clause automatically, use C<mycolumn>.
+1 -1
t/dbix-custom-core-sqlite.t
... ...
@@ -6,7 +6,7 @@ use utf8;
6 6
 use Encode qw/encode_utf8 decode_utf8/;
7 7
 use Data::Dumper;
8 8
 
9
-$SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /DEPRECATED/};
9
+#$SIG{__WARN__} = sub { warn $_[0] unless $_[0] =~ /DEPRECATED/};
10 10
 
11 11
 BEGIN {
12 12
     eval { require DBD::SQLite; 1 }