The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DBD::Sys::Table - abstract base class of tables used in DBD::Sys

ISA

  DBD::Sys::Table
  ISA DBI::DBD::SqlEngine::Table

DESCRIPTION

DBD::Sys::Table provides an abstract base class to wrap the requirements of SQL::Statement on a table around the pure data collecting actions.

Methods of DBD::Sys::Table

new

Constructor - called from DBD::Sys::PluginManager::getTable when called from SQL::Statement::open_tables for tables with one implementor class. The $attrs argument contains the owner statement instance in the field owner and the owning database handle in the field <database>.

fetch_row

Called by SQL::Statement to fetch the single rows. This method return the rows contained in the data attribute of the individual instance.

Methods provided by derived classes

getColNames

This method is called during the construction phase of the table. It must be a static method - the called context is the class name of the constructed object.

collectData

This method is called when the table is constructed but before the first row shall be delivered via fetch_row().

getPrimaryKey

This method returns the column name of the primary key column. If not overwritten, the first column name is returned by DBD::Sys::Table.

AUTHOR

    Jens Rehsack                        Alexander Breibach
    CPAN ID: REHSACK
    rehsack@cpan.org                    alexander.breibach@googlemail.com
    http://www.rehsack.de/              http://...

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SUPPORT

Free support can be requested via regular CPAN bug-tracking system. There is no guaranteed reaction time or solution time. It depends on business load. That doesn't mean that ticket via rt aren't handles as soon as possible, that means that soon depends on how much I have to do.

Business and commercial support should be aquired from the authors via preferred freelancer agencies.

SEE ALSO

perl(1), DBI, Module::Build, Module::Pluggable, Params::Util, SQL::Statement.