NAME

DataPort::DataFile - pure Perl API for local database files

SYNOPSIS

use DataPort::FileType::$Data_Source_Module

$dbh     = new(@args)

$success = $dbh->put( \@fields, \$record )

$success = $dbh->get( \@fields, \$record )

$success = $dbh->finish(  )

~~~~ Data Source Interface (DSI) follows ~~~~~ 

$success = $dbh->get_record( \$record )

$success = $dbh->decode_record( \$record )

$success = $dbh->decode_field( \$record, \@fields )

$success = $dbh->encode_field( \@fields, $record_p)

$success = $dbh->encode_record( \$record);

$success = $dbh->put_record( \$record );

DESCRIPTION

new method

$dbh     = new(@args)

put method

$success = $dbh->put( \@fields, \$record )

get method

$success = $dbh->get( \@fields, \$record )

finish method

$success = $dbh->finish(  )

get_record DSI method

$success = $dbh->get_record( \$record )

decode_record DSI method

$success = $dbh->decode_record( \$record )

decode_field DSI method

$success = $dbh->decode_field( \$record, \@fields )

encode_field DSI method

$success = $dbh->encode_field( \@fields, $record_p)

encode_record DSI method

$success = $dbh->encode_record( \$record);

put_record DSI method

$success = $dbh->put_record( \$record );

REQUIREMENTS

Requirements are coming.

DEMONSTRATION

QUALITY ASSURANCE

The module "t::DataPort::DataFile" is the Software Test Description(STD) module for the "DataPort::DataFile". module.

To generate all the test output files, run the generated test script, run the demonstration script, execute the following in any directory:

tmake -verbose -replace -run  -pm=t::DataPort::DataFile

Note that tmake.pl must be in the execution path $ENV{PATH} and the "t" directory on the same level as the "lib" that contains the "DataPort::DataFile" module.

NOTES

AUTHOR

The holder of the copyright and maintainer is

E<lt>support@SoftwareDiamonds.comE<gt>

Copyrighted (c) 2002 Software Diamonds

All Rights Reserved

BINDING REQUIREMENTS NOTICE

Binding requirements are indexed with the pharse 'shall[dd]' where dd is an unique number for each header section. This conforms to standard federal government practices, 490A ("3.2.3.6" in STD490A). In accordance with the License, Software Diamonds is not liable for any requirement, binding or otherwise.

LICENSE

Software Diamonds permits the redistribution and use in source and binary forms, with or without modification, provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

SOFTWARE DIAMONDS PROVIDES THIS SOFTWARE 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWARE DIAMONDS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING USE OF THIS SOFTWARE, EVEN IF ADVISED OF NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE POSSIBILITY OF SUCH DAMAGE.