NAME
Config::DB::Table - DataBase Configuration Table module
SYNOPSIS
use Config::DB;
my $cfg = Config::DB->new( connect => \@params, tables => \%tables );
my $table = $cfg->get( 'table1' );
DESCRIPTION
This module is used by Config::DB to rapresentate a table.
METHODS
get( $key_value [ , $field_name ] )
It returns a configuration value or a configuration record. Parameter $key_value identifies the requested record; without $field_name parameter a Config::DB:Record object is returned, if provided the method returns the value of that field as a SCALAR. It dies on missing key value or missing field.
AUTOLOAD
A quicker syntax is offered: following calls are identical...
my $rec1 = $table->get( 1 );
my $rec1 = $table->_1;
... following calls are identical as well.
my $value2 = $table->get( 2 'field2' );
my $value2 = $table->_2( 'field2' );
VERSION
0.0.2