Re: (Fwd) DBI Dilemma
"Peter J. Holzer" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.general |
|---|---|
| Message-ID | <[email protected]> |
On 2015-08-18 14:21:39 +0000, Adkins, Blake wrote:
> My script works on the .csv file using dbi:CSV:f_dir and pointing to
> different files for different projects.
[...]
> I'm using the DBI module in Perl, would this be better with the other modules mentioned?
[the other module mentioned being DBD::CSV]
The DBD modules are database specific drivers for DBI. So if you use DBI
to connect to "dbi:CSV:f_dir=foo", it will call DBD::CSV behind the
scenes (similarily, if you connected to "dbi:Pg:dbname=foo", it would
call DBD::Pg, etc.). The DBD modules are not intended to be used
standalone, you always use them indirectly through DBI. See the perldoc
page for DBI which explains the architecture quite well.
hp
--
_ | Peter J. Holzer | I think we need two definitions:
|_|_) | WSR - Softwaredevelopment | 1) The problem the *users* want us to solve
| | | und Projektunterstützung | 2) The problem our solution addresses.
__/ | [email protected] | -- Phillip Hallam-Baker on spam
signature.asc
(application/pgp-signature, 173 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iD8DBQFV1JujMdFfQa64PCwRAvbyAJ0Wj5/otCI/27XiBMxKBdUN8yqlJwCaA5Cj dPuuhH8ReQyE1Mg7hqoNkTw= =/0KU -----END PGP SIGNATURE-----