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

MLDBM::TinyDB 0.20

  Date Added: February 12, 2010  |  Visits: 923

MLDBM::TinyDB

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



MLDBM::TinyDB is a Perl module that can help you to create and manipulate structured MLDBM tied hash references. SYNOPSIS use MLDBM::TinyDB; ## or use MLDBM::TinyDB qw/db add_common/; @common = qw/created updated/; ## optional $tree = [TABLE, FIELDS_LIST, [TABLE1, FIELDS_LIST1, [TABLE2, FIELDS_LIST2], ... ], ... ]; MLDBM::TinyDB::add_common($tree,@common); ## optional ## or add_common($tree,@common); %obj = (); $obj{TABLE} = MLDBM::TinyDB->init(TABLE, $tree); ## or $obj{TABLE} = MLDBM::TinyDB->init(TABLE, $tree, undef, $mode, $perms); ## or $obj{TABLE} = MLDBM::TinyDB->init(TABLE); ## NEVER FIRST TIME @down = $obj{TABLE}->down; ## TABLE1 $obj{TABLE1} = MLDBM::TinyDB::db(TABLE1); ## or $obj{TABLE1} = db(TABLE1); $table = $obj{TABLE}->table; ## TABLE @down = $obj{TABLE1}->down; ## TABLE2 $obj{TABLE2} = MLDBM::TinyDB::db(TABLE2); ## or $obj{TABLE2} = db(TABLE2); @set_recs_indices = $obj{TABLEn}->set_recs(ARRAYREF_TO_HASHREF,[LIST]); $up = $obj{TABLE2}->up; ## TABLE1 $aref_of_href = $obj{TABLE}->get_ext_recs; ## or ($aref_of_href, @get_recs_indices) = $obj{TABLE}->get_ext_recs; $aref_of_href1 = $obj{TABLE}->get_recs; ## NOT THE SAME AS ABOVE ## or ($aref_of_href1, @get_recs_indices1) = $obj{TABLE}->get_recs; @indices_of_recs_found = $obj{TABLE}->search($criteria, [$limit]); @indices_of_recs_found = $obj{TABLE}->lsearch($criteria, [$limit]); @indices_and_sort_field_values = $obj{TABLE}->sort($sort_formula_string); @indices_and_sort_field_values = $obj{TABLE}->lsort($sort_formula_string); $obj{TABLEn}->delete([LIST]); $obj{TABLEn}->last; MLDBM::TinyDB is MLDBM based module. It allows to create/manipulate data structure of related tables = more-then-flatfile-database. The main idea is to create array reference which will reflect database structure. The first scalar value in the array is table name, next ones are fields names - if the array contains array reference it denotes interior (related) table where first scalar value is that table name (in that case the record will contain the field of the same name as interior table) and the next ones are fields names and so on... If database structure isnt written on disk then that structure is fetched from the array reference and written to disk. Object is always built from disk structures. To define record you may use any field name except "nodes" which is restricted field name and shouldnt be specified explicitly. created and updated fields are handled internally - if they are specified then: 1)on append record operation time function value is set to created record field 2)on write to existing record operation time function value is set to updated record field. Data get from and set to records are in form of array reference to hash references where hash keys are fields names. The fields names that are interior tables names contain array references. That array store indices (similar to array indices) identifying particular records. Those fields MUST be set to proper values before write records set_recs operation..

Requirements: No special requirements
Platforms: Linux
Keyword: Array Field Indices Libraries Mldbm Mldbmtinydb Obj Perl Module Recs Tablen Tinydb To Create
Users rating: 0/10

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


MLDBM::TINYDB RELATED
Libraries  -  Net::DHCP::Packet 0.66
Net::DHCP::Packet is a Perl module with object methods to create a DHCP packet. SYNOPSIS use Net::DHCP::Packet; my $p = new Net::DHCP::Packet->new( Chaddr => 000BCDEF, Xid => 0x9F0FD, Ciaddr => 0.0.0.0, Siaddr => 0.0.0.0, Hops => 0);...
21.5 KB  
Programming  -  Perl Module Manager 1.2.0.18
Perl Module Manager helps you to install, un-install and manage Perl modules from a CPAN site and other sources in an easy and intuitive way. Allows you to search through thousands of useful modules and libraries on a CPAN site and its mirrors....
1.44 MB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Dictionaries  -  PDF::Create 0.06.1
PDF::Create is a Perl module that allows you to create PDF documents, possibly on the fly,using a large number of primitives.
33.02 KB  
Libraries  -  MLDBM 2.01
MLDBM is a Perl module to store multi-level hash structure in single level tied hash. SYNOPSIS use MLDBM; # this gets the default, SDBM #use MLDBM qw(DB_File FreezeThaw); # use FreezeThaw for serializing #use MLDBM qw(DB_File Storable); #...
10.24 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  HTML::FormHighlight 0.03
HTML::FormHighlight Perl module can help you to highlights fields in an HTML form. SYNOPSIS use HTML::FormHighlight; my $h = new HTML::FormHighlight; print $h->highlight( scalarref => $form, fields => [ A, B, C ], ); print...
5.12 KB  
Libraries  -  List::Part 0.03
List::Part is a Perl module that allows you to partition one array into several. SYNOPSIS use List::Part; ($good, $bad)=part { !/substring/ } @array; #store arrayrefs into $good and $bad (*good, *bad)=part { !/substring/ } @array; #store...
4.1 KB  
Libraries  -  Set::CrossProduct 1.92
Set::CrossProduct is a Perl module that allows you to work with the cross product of two or more sets. SYNOPSIS my $iterator = Set::CrossProduct->new( ARRAY_OF_ARRAYS ); # get the next tuple my $number_of_tuples = $iterator->cardinality;...
7.17 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 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