Tree::Persist::DB - The base class for DB plugins for Tree persistence
See "SYNOPSIS" in Tree::Persist or scripts/xml.demo.pl for sample code.
This class is the base class for the Tree::Persist::DB::* hierarchy, which provides DB plugins for Tree persistence through Tree::Persist.
Parameters are used in the call to "connect({%opts})" in Tree::Persist or "create_datastore({%opts})" in Tree::Persist.
In addition to any parameters required by its parent Tree::Persist::Base,
the following parameters are used by connect()
or create_datastore()
:
For any DB::* plugin to be used, the type must be 'DB' (case-sensitive).
This is the $dbh that is already connected to the right database and schema with the appropriate user. This is required.
This is the table name that contains the tree. This is required.
Tree::Persist::DB is a sub-class of Tree::Persist::Base, and inherits all its methods.
Please see the relevant section of Tree::Persist.
Please see the relevant section of Tree::Persist.
Rob Kinyon <rob.kinyon@iinteractive.com>
Stevan Little <stevan.little@iinteractive.com>
Thanks to Infinity Interactive for generously donating our time.
Co-maintenance since V 1.01 is by Ron Savage <rsavage@cpan.org>. Uses of 'I' in previous versions is not me, but will be hereafter.
Copyright 2004, 2005 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.