Tree::Numbered::DB

A tree that is stored in / tied to a DB table.
Download

Tree::Numbered::DB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Yosef Meller
  • Publisher web site:
  • http://search.cpan.org/~yosefm/

Tree::Numbered::DB Tags


Tree::Numbered::DB Description

A tree that is stored in / tied to a DB table. Tree::Numbered::DB is a tree that is stored in / tied to a DB table.SYNOPSIS use NumberedTree::DBTree; my $dbh = DBI->connect(...); # The easy way: my $tree = NumberedTree::DBTree->read($table, $dbh); # The hard way: my $tree = NumberedTree::DBTree->new(source_name => 'a_table', source => $dbh); while (I aint sick of it) { $tree->append($newValue); } etc.Tree::Numbered::DB is a child class of Tree::Numbered that supplies database tying (every change is immediately reflected in the database) and reading using tables that are built to store a tree (the structure is described below). It's basically the same as Tree::Numbered except for some methods. These, and arguments changes for inherited methods, are also described below. For the rest, please refer to the documentation for Tree::Numbered.Tree::Numbered::DB allows you to change the relations between the table and the tree, by adding and deleting fields on runtime, thus giving you a lot of flexibility in working with big tables. The mechanism for that is described below in short. A lot about dealing with fields can be found in the docs for Tree::Numbered.To see a working example, see example.pl in the distribution directory. Requirements: · Perl


Tree::Numbered::DB Related Software