Skip to content

Commit 8284492

Browse files
author
H.Merijn Brand
committed
Added TODO to documentation
Renames example to examples Added clean to Makefile.PL
1 parent d414e61 commit 8284492

File tree

5 files changed

+54
-11
lines changed

5 files changed

+54
-11
lines changed

ChangeLog

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2009-04-26 H.Merijn Brand (0.30)
1+
2009-04-29 H.Merijn Brand (0.25)
22

33
* Code cleanup (perlcritic, style, layout)
44
* Implement f_exp
@@ -8,7 +8,8 @@
88
* Cleaned up tests
99
* Tests now use Test::More
1010
* Cut down README. No need to be a duplicate module pod
11-
*
11+
* Added TODO to documentation
12+
* Added examples/ from docs
1213

1314
2005-08-10 Jeff Zucker <jzuckerATcpan.org> (0.23)
1415

MANIFEST

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ t/51_commit.t
2323
t/60_misc.t
2424
t/70_csv.t
2525
t/lib.pl
26-
example/passwd.pl
26+
examples/passwd.pl

Makefile.PL

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ my %wm = (
3838
"DBD::File" => 0.36,
3939
"Test::More" => 0,
4040
},
41+
clean => {
42+
FILES => join " ", qw(
43+
output
44+
cover_db
45+
valgrind.log
46+
)
47+
},
4148
);
4249
$ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl";
4350

File renamed without changes.

lib/DBD/CSV.pm

+43-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use vars qw( @ISA $VERSION $drh $err $errstr $sqlstate );
3434

3535
@ISA = qw( DBD::File );
3636

37-
$VERSION = "0.30";
37+
$VERSION = "0.25";
3838

3939
$err = 0; # holds error code for DBI::err
4040
$errstr = ""; # holds error string for DBI::errstr
@@ -168,7 +168,7 @@ sub open_table
168168
}
169169
$tbl->{types} = $t;
170170
}
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") {
172172
my $array;
173173
my $skipRows = exists $meta->{skip_rows}
174174
? $meta->{skip_rows}
@@ -236,7 +236,7 @@ sub push_row
236236
pop @$fields;
237237
}
238238
$csv->print ($fh, $fields) or
239-
croak "Error while writing file " . $self->{'file'} . ": $!";
239+
croak "Error while writing file " . $self->{file} . ": $!";
240240
1;
241241
} # push_row
242242
*push_names = \&push_row;
@@ -425,8 +425,8 @@ To retrieve data, you can use the following:
425425
my $sth = $dbh->prepare ($query);
426426
$sth->execute ();
427427
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};
430430
}
431431
$sth->finish ();
432432
@@ -565,7 +565,7 @@ These attributes and methods are not supported:
565565
In addition to the DBI attributes, you can use the following dbh
566566
attributes:
567567
568-
=over 8
568+
=over 4
569569
570570
=item f_dir
571571
@@ -637,7 +637,7 @@ This hash ref is used for storing table dependent metadata. For any
637637
table it contains an element with the table name as key and another
638638
hash ref with the following attributes:
639639
640-
=over 12
640+
=over 4
641641
642642
=item file
643643
@@ -739,7 +739,7 @@ L<Creating and dropping tables> above.
739739
740740
=head1 KNOWN ISSUES
741741
742-
=over 8
742+
=over 4
743743
744744
=item *
745745
@@ -750,6 +750,41 @@ operating systems, as they are for single users anyways).
750750
751751
=back
752752
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+
753788
=head1 SEE ALSO
754789
755790
L<DBI(3)>, L<Text::CSV_XS(3)>, L<SQL::Statement(3)>

0 commit comments

Comments
 (0)