XML::DB::File - XML:DB driver for a simple file system |
XML::DB::File - XML:DB driver for a simple file system
my $driver = 'File'; my $url = '/usr/local/somewhere';
eval{ $dbm = new XML::SimpleDB::DatabaseManager(); $dbm->registerDatabase($driver); $col = $dbm->getCollection(``xmldb:$driver:$url/db/test''); };
if ($@){ die $@; }
This is the driver for a simple XML File system. It is intended to be used through the XML:DB API, so that it is never called directly from user code. It implements the internal API defined in XML::DB::Database.
This is not a database; it is simply a driver for flat files, with no indexing; it was created as a convenience for testing and for transferring files between a file system and a real database.
Graham Seaman CPAN ID: GSEAMAN graham@opencollector.org
Copyright (c) 2002 Graham Seaman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1).
Usage : $driver = new XML::DB::Database('File');
Purpose : Constructor
Argument : $self, passed from Database.pm
Returns : File driver, an extension of XML::DB::Database
XML::DB::File - XML:DB driver for a simple file system |