Main > Programming > Libraries >

DBIx::TableHash 1.05

DBIx::TableHash 1.05

Sponsored Links

DBIx::TableHash 1.05 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.017 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1229
Date added: 2006-06-12
Publisher: Chris Thorman

DBIx::TableHash 1.05 description

DBIx::TableHash is a Perl module that can tie a hash to a mysql table + SQL utils.

SYNOPSIS

use DBIx::TableHash;
my $DBHash = DBIx::TableHash->create_or_die
(my $Params =
{
DBIDriver => mysql,
Database => mydatabase,
HostName => localhost,
Port => undef,
Login => ,
Password => ,

TableName => SalesPeople,
KeyField => FullName,

## For multi-key lookup:
FixedKeys => {AreaCode => 415,
StatusCode => Active,
RecordType => Primary},

## To retrieve a single value:
ValueField => PhoneNumber,

## ... or for "multi-value" retrieval...
ValueField => undef,

## ... optionally specifying...
RetrieveFields => [qw(Title Territory Quota)],

## For caching:
CacheMode => CacheBeforeIterate
## or...
CacheMode => CacheOneTime
## or...
CacheMode => CacheNone
}
);

my %DBHash; tie(%DBHash, DBIx::TableHash, $Params);

my $DBHash = DBIx::TableHash->create($Params) or die "Help!";
my $DBHash = DBIx::TableHash->create_or_die($Params);

my $DBHash = DBIx::TableHash->create_copy($Params) or die "Help!";
my $DBHash = DBIx::TableHash->create_copy_or_die($Params);

All parameters are passed via a single anonymous hash.

All parameters are optional, but youll almost always need to specify Database, TableName, and KeyField.

Omitting ValueField puts the hash in "multi-value" mode, where you store/retrieve a hash of fields/values instead of a single value. In "multi-value" mode all fields in each record are retrieved on every fetch; RetrieveFields limits fields retrieved to a specified list.

Specifying FixedKeys puts the hash in "multi-key" mode, in which only a subset of the database table, corresopnding to records that match the spec in FixedKeys, is operated on.

Cache modes reduce querying, but lose synchronization and hog memory.
The object is designed to be easy subclass. Try making a subclass that sets defaults for all or most of the parameters, so the caller doesnt have to supply any at instantiation time.

"create_copy" methods efficiently create and return potentially huge untied hash "snapshot" of the same data that would have been retrieved by the corresponding tied hash.

DBIx::TableHash 1.05 Screenshot

Advertisements

DBIx::TableHash 1.05 Keywords

Bookmark DBIx::TableHash 1.05

Hyperlink code:
Link for forum:

DBIx::TableHash 1.05 Copyright

WareSeeker periodically updates pricing and software information of DBIx::TableHash 1.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DBIx::TableHash 1.05 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
DBIx::CGITables is a Perl module for easy DB access from a CGI. Free Download
DBIx::XHTML_Table is Perl module for SQL query result set to XML-based HTML table. Free Download
DBIx::Frame is a Perl module for creating and maintaining DBI frameworks. Free Download
DBIx::XMLMessage is a Perl module for XML Message exchange between DBI data sources. Free Download
DBIx::Timeout is a Perl module that provides a safe method of timing out DBI requests. Free Download
Hash::Type module contains pseudo-hashes as arrays tied to a "type" (list of fields). Free Download
DBIx::Simple provides a simplified interface to DBI, Perls powerful database module. Free Download
Basset::Container::Hash Perl module implements a layered hash. Free Download