ActivePerl Documentation
|
NAMEDBD::File - Base class for writing DBI drivers for plain files
SUPPORTED PLATFORMS
SYNOPSIS
use DBI;
$dbh = DBI->connect("DBI:File:f_dir=/home/joe/csvdb")
or die "Cannot connect: " . $DBI::errstr;
$sth = $dbh->prepare("CREATE TABLE a (id INTEGER, name CHAR(10))")
or die "Cannot prepare: " . $dbh->errstr();
$sth->execute() or die "Cannot execute: " . $sth->errstr();
$sth->finish();
$dbh->disconnect();
DESCRIPTIONThe DBD::File module is not a true DBI driver, but an abstract base class for deriving concrete DBI drivers from it. The implication is, that these drivers work with plain files, for example CSV files or INI files. The module is based on the SQL::Statement module, a simple SQL engine. See DBI(3) for details on DBI, the SQL::Statement(3) manpage for details on SQL::Statement and the DBD::CSV(3) manpage or the DBD::IniFile(3) manpage for example drivers.
MetadataThe following attributes are handled by DBI itself and not by DBD::File, thus they all work like expected:
Active
ActiveKids
CachedKids
CompatMode (Not used)
InactiveDestroy
Kids
PrintError
RaiseError
Warn (Not used)
The following DBI attributes are handled by DBD::File:
These attributes and methods are not supported:
bind_param_inout
CursorName
LongReadLen
LongTruncOk
Additional to the DBI attributes, you can use the following dbh attribute:
Driver private methods
TODO
KNOWN BUGS
AUTHOR AND COPYRIGHTThis module is Copyright (C) 1998 by
Jochen Wiedmann
Am Eisteich 9
72555 Metzingen
Germany
Email: joe@ispsoft.de
Phone: +49 7123 14887
All rights reserved. You may distribute this module under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
SEE ALSODBI(3), the Text::CSV_XS(3) manpage, the SQL::Statement(3) manpage
|