@@ -34,7 +34,7 @@ use vars qw( @ISA $VERSION $drh $err $errstr $sqlstate );
34
34
35
35
@ISA = qw( DBD::File ) ;
36
36
37
- $VERSION = " 0.30 " ;
37
+ $VERSION = " 0.25 " ;
38
38
39
39
$err = 0; # holds error code for DBI::err
40
40
$errstr = " " ; # holds error string for DBI::errstr
@@ -168,7 +168,7 @@ sub open_table
168
168
}
169
169
$tbl -> {types } = $t ;
170
170
}
171
- if (!$createMode and !$self -> {ignore_missing_table } and $self -> command ne ' DROP' ) {
171
+ if (!$createMode and !$self -> {ignore_missing_table } and $self -> command ne " DROP" ) {
172
172
my $array ;
173
173
my $skipRows = exists $meta -> {skip_rows }
174
174
? $meta -> {skip_rows }
@@ -236,7 +236,7 @@ sub push_row
236
236
pop @$fields ;
237
237
}
238
238
$csv -> print ($fh , $fields ) or
239
- croak " Error while writing file " . $self -> {' file' } . " : $! " ;
239
+ croak " Error while writing file " . $self -> {file } . " : $! " ;
240
240
1;
241
241
} # push_row
242
242
*push_names = \&push_row;
@@ -425,8 +425,8 @@ To retrieve data, you can use the following:
425
425
my $sth = $dbh->prepare ($query);
426
426
$sth->execute ();
427
427
while (my $row = $sth->fetchrow_hashref) {
428
- print "Found result row: id = ", $row->{'id' },
429
- ", name = ", $row->{' name' };
428
+ print "Found result row: id = ", $row->{id },
429
+ ", name = ", $row->{name};
430
430
}
431
431
$sth->finish ();
432
432
@@ -565,7 +565,7 @@ These attributes and methods are not supported:
565
565
In addition to the DBI attributes, you can use the following dbh
566
566
attributes:
567
567
568
- =over 8
568
+ =over 4
569
569
570
570
=item f_dir
571
571
@@ -637,7 +637,7 @@ This hash ref is used for storing table dependent metadata. For any
637
637
table it contains an element with the table name as key and another
638
638
hash ref with the following attributes:
639
639
640
- =over 12
640
+ =over 4
641
641
642
642
=item file
643
643
@@ -739,7 +739,7 @@ L<Creating and dropping tables> above.
739
739
740
740
=head1 KNOWN ISSUES
741
741
742
- =over 8
742
+ =over 4
743
743
744
744
=item *
745
745
@@ -750,6 +750,41 @@ operating systems, as they are for single users anyways).
750
750
751
751
=back
752
752
753
+ =head1 TODO
754
+
755
+ =over 4
756
+
757
+ =item Tests
758
+
759
+ - eol Make tests for different record separators.
760
+ - f_ext Test f_ext possibilities.
761
+ - csv_xs Test with a variety of combinations for
762
+ sep_char, quote_char, and escape_char testing
763
+ - errors Make sure that all documented exceptions are tested.
764
+ . write to write-protected file
765
+ . read from badly formatted csv
766
+ . pass bad arguments to csv parser while fetching
767
+
768
+ =item NULL
769
+
770
+ Enable real NULL handling with blank_is_undef.
771
+
772
+ =item Encoding
773
+
774
+ Test how well UTF-8 is supported, if not (yet), enable UTF-8, and maybe
775
+ even more.
776
+
777
+ =item Documentation
778
+
779
+ Expand on error-handling, and document all possible errors.
780
+ Use Text::CSV_XS::error_diag () wherever possible.
781
+
782
+ =item Examples
783
+
784
+ Make more real-life examples from the docs in examples/
785
+
786
+ =back
787
+
753
788
=head1 SEE ALSO
754
789
755
790
L<DBI(3)> , L<Text::CSV_XS(3)> , L<SQL::Statement(3)>
0 commit comments