Purple::DB_File - DB_File driver for Purple


Purple documentation  | view source Contained in the Purple distribution.

Index


NAME

Top

Purple::DB_File - DB_File driver for Purple

SYNOPSIS

Top

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

Top

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

Top

Chris Dent, <cdent@burningchrome.com>

Eugene Eric Kim, <eekim@blueoxen.com>

Gerry Gleason, <gerry@geraldgleason.com>

BUGS

Top

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

Top

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

COPYRIGHT & LICENSE

Top


Purple documentation  | view source Contained in the Purple distribution.