MLDBM::TinyDB 0.20
Sponsored Links
MLDBM::TinyDB 0.20 Ranking & Summary
File size:
0.010 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
837
Date added:
2007-07-12
Publisher:
Darek Adamkiewicz
MLDBM::TinyDB 0.20 description
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.
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.
MLDBM::TinyDB 0.20 Screenshot
MLDBM::TinyDB 0.20 Keywords
MLDBM
TABLE
TinyDB
TinyDB 0.20
TABLEn
FIELDS
To Create
set to
Perl module
can help
OBJ
recs
array
indices
TABLE1
TABLE2
Bookmark MLDBM::TinyDB 0.20
MLDBM::TinyDB 0.20 Copyright
WareSeeker periodically updates pricing and software information of MLDBM::TinyDB 0.20 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 MLDBM::TinyDB 0.20 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
MLDBM is a Perl module to store multi-level hash structure in single level tied hash. Free Download
AudioCD is a Perl module for basic Audio CD control. Free Download
DBIx::PDlib is a Perl with DBI SQL abstraction and convenience methods. Free Download
DBIx::EnumConstraints is a Perl module that generates enum-like SQL constraints. Free Download
sqlt-diff is a Perl module that can find the differences b/w two schemas. Free Download
DBM::Deep is a pure perl multi-level hash/array DBM. Free Download
Class::CGI is a Perl module to fetch objects from your CGI object. Free Download
DBIx::DataModel is a Perl module with Classes and UML-style Associations on top of DBI. Free Download
Latest Software
Popular Software
Favourite Software