Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.202.321 Times

DBIx::TableHash 1.05

  Date Added: July 16, 2010  |  Visits: 698

DBIx::TableHash

Report Broken Link
Printer Friendly Version


Product Homepage
Download (102 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Cachemode Create Dbhash Dbix Dbixtablehash Hash Mysql Mysql Table Params Perl Module Table Tablehash Tie Valuefield
Users rating: 0/10

License: Freeware Size: 17.41 KB
USER REVIEWS
More Reviews or Write Review


DBIX::TABLEHASH RELATED
Libraries  -  DBIx::Class::Schema::Loader::RelBuilder 0.03007
DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader. This class builds relationships for DBIx::Class::Schema::Loader. This is module is not (yet) for external use. METHODS new...
32.77 KB  
Libraries  -  DBD::mysql 4.004
DBD::mysql is a Perl module with MySQL driver for the Perl5 Database Interface (DBI). SYNOPSIS use DBI; $dsn = "DBI:mysql:database=$database;host=$hostname;port=$port"; $dbh = DBI->connect($dsn, $user, $password); $drh =...
112.64 KB  
Libraries  -  DBD::mSQL 1.2219
DBD::mSQL / DBD::mysql is a Perl module with mSQL and mysql drivers for the Perl5 Database Interface (DBI). SYNOPSIS use DBI; $driver = "mSQL"; # or "mSQL1"; $dsn = "DBI:$driver:database=$database;host=$hostname"; $dbh =...
194.56 KB  
Programming  -  phpMyEdit: MySQL Table Editor 5.1
How many times have you hand coded a MySQL table editor in PHP? PHPMyEdit provides an instant table editor. All you need to do is to write a simple calling program (and there's a utility to do this) and the job's a good 'un!
47.92 KB  
Database Tools  -  mySQL Table Tool 1.00
mySQL Table Tool is the perfect tool to repair and/or optimize mySQL database tables. Fully web-interactive.This tool will compile a list of tables in the database, and allow you to select which database(s) to repair and/or optimize. Repairing...
10 KB  
Database Tools  -  MySQL Table Abstraction Class 1.0
MySQL Table Abstraction Class can be used to wrap the access to individual MySQL database table rows in class objects. Each object of the class stores the values of the fields of a given row of a given table. The class provides means to store and...
10 KB  
Libraries  -  DBIx::DBStag::Cookbook 0.08
DBIx::DBStag::Cookbook is a Perl module for building and querying databases from XML. SYNOPSIS stag-autoddl.pl stag-storenode.pl selectall_xml.pl This will give an outline of how to build a normalised relational database from XML source...
133.12 KB  
Libraries  -  DBIx::Class::Manual::Cookbook 0.08001
DBIx::Class::Manual::Cookbook is a Perl module that contains miscellaneous recipes. Paged results When you expect a large number of results, you can ask DBIx::Class for a paged resultset, which will fetch only a small number of records at a...
286.72 KB  
Libraries  -  DBIx::MyParse 0.88
DBIx::MyParse is a Perl module that provides access to the MySQL SQL parser..
86.02 KB  
Database Tools  -  MySQL Table Admin 1.0
A simple and easy script to manage MySQL tables.You can modify, add, delete records or lock some of these features.Installation- Unpack the zip file content on your web server- Modify settings as described by comments in index.php- see detailed...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB