The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Purple::DB_File - DB_File driver for Purple

SYNOPSIS

DB_File backend for storing and retrieving Purple nids.

    # XXX update this for factory stuff
    use Purple::DB_File;

    my $p = Purple::DB_File->new('purple.db');
    my $nid = $p->getNext('http://i.love.purple/');
    my $url = $p->getURL($nid);  # http://i.love.purple/

METHODS

new($db_loc)

Initializes NID database at $db_loc, creating it if it does not already exist. Defaults to "purple.db" in the current directory if $db_loc is not specified.

getNext($url)

Gets the next available NID, assigning it $url in the database.

getURL($nid)

Gets the URL associated with NID $nid.

updateURL($url, @nids)

Updates the NIDs in @nids with the URL $url.

getNIDs($url)

Gets all NIDs associated with $url.

deleteNIDs(@nids)

Deletes all NIDs in @nids.

AUTHORS

Chris Dent, <cdent@burningchrome.com>

Eugene Eric Kim, <eekim@blueoxen.com>

Gerry Gleason, <gerry@geraldgleason.com>

BUGS

Please report any bugs or feature requests to bug-purple@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Purple. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

Based on PurpleWiki::Sequence, which it attempts to replace.

COPYRIGHT & LICENSE

(C) Copyright 2006 Blue Oxen Associates. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.