NAME
DBD::Template - A template/sample class for DBI drivers.
This is still alpha version.
SYNOPSIS
use DBI;
$hDb = DBI->connect("DBI:Template:", '', '',
{AutoCommit => 1, RaiseError=> 1,
tmpl_func_ => {
connect => \&connect,
prepare => \&prepare,
execute => \&execute,
fetch => \&fetch,
rows => \&rows,
name => \&name,
table_info => \&table_info,
},
tmpl_your_var => 'what you want', #...
)
or die "Cannot connect: " . $DBI::errstr;
$hSt = $hDb->prepare("CREATE TABLE a (id INTEGER, name CHAR(10))")
or die "Cannot prepare: " . $hDb->errstr();
...
$hDb->disconnect();
DESCRIPTION
This is still alpha version.
The DBD::Template module is a DBI driver. You can make DBD with simply define function described below;
Functions
You can/should defined these functions to make DBD. required means "You should define that function". Please refer example/tmpl*.pl, for more detail.
Driver Level
- datasources
- connect
Database Level
Statement Level
AUTHOR
Kawai Takanori (Hippo2000) kwitknr@cpan.org
SEE ALSO
DBI, DBI::DBD
COPYRIGHT
Copyright (c) 2002 KAWAI,Takanori All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.