Rechercher une page de manuel
ORLite::Mirror.3pm
Langue: en
Version: 2010-01-28 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
ORLite::Mirror - Extend ORLite to support remote SQLite databasesSYNOPSIS
# Regular ORLite on a readonly SQLite database use ORLite 'path/mydb.sqlite'; # The equivalent for a remote SQLite database use ORLite::Mirror 'http://myserver/path/mydb.sqlite'; # You can read compressed SQLite databases as well use ORLite::Mirror 'http://myserver/path/mydb.sqlite.gz'; use ORLite::Mirror 'http://myserver/path/mydb.sqlite.bz2'; (Of course you can only do one of the above)
DESCRIPTION
ORLite provides a readonly ORM API when it loads a readonly SQLite database from your local system.By combining this capability with LWP, ORLite::Mirror goes one step better and allows you to load a SQLite database from any arbitrary URI in readonly form as well.
As demonstrated in the synopsis above, you using ORLite::Mirror in the same way, but provide a URL instead of a file name.
If the URL explicitly ends with a '.gz' or '.bz2' then ORLite::Mirror will decompress the file before loading it.
SUPPORT
Bugs should be reported via the CPAN bug tracker at<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ORLite-Mirror>
For other issues, contact the author.
AUTHOR
Adam Kennedy <adamk@cpan.org>COPYRIGHT
Copyright 2008 - 2010 Adam Kennedy.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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre