The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBD::TemplateSS - A template/sample class for DBI drivers with SQL::Statement.

This is still alpha version.

SYNOPSIS

    use DBI;
    $hDb = DBI->connect("DBI:TemplateSS:", '', '',
        {AutoCommit => 1, RaiseError=> 1,
                 tmplss_func_ => {
                    connect    => \&connect,
                    prepare => \&prepare,
                    execute => \&execute,
                    fetch   => \&fetch,
                    rows    => \&rows,
                    name    => \&name,
                    table_info    => \&table_info,
                 },
                 tmplss_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::TemplateSS module is a DBI driver with SQL::Statement. 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/tmps*.pl, for more detail.

Driver Level

datasources
connect

Database Level

prepare
commit
rollback
table_info
disconnect
dbh_destroy
quote
type_info
funcs

Statement (Handle) Level

finish
sth_destroy

Statement (SQL::Statement) Level

open_table (required)

Table (SQL::Statement) Level

seek (required)
fetch_row (required)
push_row (required)
truncate (required)
drop (required)

AUTHOR

Kawai Takanori (Hippo2000) kwitknr@cpan.org

SEE ALSO

DBI, DBI::DBD, SQL::Statement

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.