XML::DB::DatabaseManager

XML::DB::DatabaseManager is an approximation to the XML:DB DatabaseManager.
Download

XML::DB::DatabaseManager Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Seaman
  • Publisher web site:
  • http://search.cpan.org/~gseaman/XML-DB/lib/XML/DB/DatabaseManager.pm

XML::DB::DatabaseManager Tags


XML::DB::DatabaseManager Description

XML::DB::DatabaseManager is an approximation to the XML:DB DatabaseManager. XML::DB::DatabaseManager is an approximation to the XML:DB DatabaseManager.SYNOPSISuse XML::DB::DatabaseManager;my $driver = 'Xindice'; my $url = 'http://localhost:4080';eval{ $dbm = new XML::DB::DatabaseManager(); $dbm->registerDatabase($driver); $col = $dbm->getCollection("xmldb:$driver:$url/db/test"); ...... };if ($@){ die $@; }deregisterDatabase($driver);This is the initial class to use to get access to the XML:DB modules, an approximate implementation of the XML:DB API defined for Java at http://www.xmldb.org. This implementation is designed to give a uniform Perl access over XML-RPC to both of the current free native XML databases, eXist and Xindice, as well as providing the same front-end for a plain file-system.Unlike the DatabaseManager defined in the XML:DB API (which is a Factory), this simply registers driver names, generating a new Database instance for each request. Multiple database drivers can be used simultaneously (eg. to transfer data from one database to another). The drivers themselves are rather confusingly called 'Databases' in this system.Only one DatabaseManager can be instantiated in a program. Requirements: · Perl


XML::DB::DatabaseManager Related Software