| 1 |
Module |
| 2 |
DBD::CSV - DBI driver for CSV files |
| 3 |
|
| 4 |
Description |
| 5 |
The DBD::CSV module is yet another driver for the DBI (Database |
| 6 |
independent interface for Perl). This one is based on the SQL |
| 7 |
"engine" SQL::Statement and the abstract DBI driver DBD::File |
| 8 |
and implements access to so-called CSV files (Comma separated |
| 9 |
values). |
| 10 |
|
| 11 |
Copying |
| 12 |
Copyright (C) 2009-2025 by H.Merijn Brand |
| 13 |
Copyright (C) 2004-2009 by Jeff Zucker |
| 14 |
Copyright (C) 1998-2004 by Jochen Wiedmann |
| 15 |
|
| 16 |
You may distribute this module under the terms of either the GNU |
| 17 |
General Public License or the Artistic License, as specified in |
| 18 |
the Perl README file. |
| 19 |
|
| 20 |
Recent changes can be (re)viewed in the public GIT repository at |
| 21 |
https://github.com/perl5-dbi/DBD-CSV.git |
| 22 |
Feel free to clone your own copy: |
| 23 |
|
| 24 |
$ git clone https://github.com/perl5-dbi/DBD-CSV.git DBD-CSV |
| 25 |
|
| 26 |
or get it as a tgz: |
| 27 |
|
| 28 |
$ wget --output-document=DBD-CSV-git.tgz \ |
| 29 |
'https://github.com/perl5-dbi/DBD-CSV/archive/master.tar.gz |
| 30 |
|
| 31 |
which will unpack to DBD-CSV-master |
| 32 |
|
| 33 |
Prerequisites: |
| 34 |
DBI - the DBI (Database independent interface for Perl). |
| 35 |
|
| 36 |
SQL::Statement - a simple SQL engine. |
| 37 |
|
| 38 |
Text::CSV_XS - this module is used for writing rows to or reading |
| 39 |
rows from CSV files. |
| 40 |
|
| 41 |
Build/Installation: |
| 42 |
Use CPAN: |
| 43 |
cpan DBD::CSV |
| 44 |
|
| 45 |
Or standard build/installation: |
| 46 |
gzip -cd DBD-CSV-0.43.tar.gz | tar xf - |
| 47 |
cd DBD-CSV-0.43 |
| 48 |
perl Makefile.PL |
| 49 |
make test |
| 50 |
make install |
| 51 |
|
| 52 |
(this is for Unix users, Windows users would prefer PowerArchiver, |
| 53 |
WinZip or something similar). |
| 54 |
|
| 55 |
The test suite contains extensive tests for all features provided |
| 56 |
by DBD::CSV. Some of them include the use of what is set to be the |
| 57 |
default temporary directory on the system. Even though the tests |
| 58 |
do not use the folder to read or modify data, using the folder will |
| 59 |
imply the scanning of that folder to see if files would qualify for |
| 60 |
use in DBD::CSV. When the folder contains many files, the scanning |
| 61 |
will seriously slow down the testing duration. The configure phase |
| 62 |
therefor asks the user if using the folder is allowed. The default |
| 63 |
answer is yes unless $AUTOMATED_TESTING is set. |
| 64 |
As File::Spec->tmpdir () honors the environment, you can enable |
| 65 |
these tests using another folder by setting $TMPDIR or whatever |
| 66 |
controls tmpdir () or your OS. |
| 67 |
|
| 68 |
Author: |
| 69 |
This module is currently maintained by |
| 70 |
|
| 71 |
H.Merijn Brand < h.m.brand at xs4all.nl > |
| 72 |
|
| 73 |
The original author is Jochen Wiedmann. |
| 74 |
Previous maintainer was Jeff Zucker |