Purple::SQLite - SQLite driver for Purple


Purple documentation  | view source Contained in the Purple distribution.

Index


NAME

Top

Purple::SQLite - SQLite driver for Purple

VERSION

Top

Version 0.9

SYNOPSIS

Top

SQLite backend for storing and retrieving Purple nids.

    use Purple::SQLite;

    my $p = Purple::SQLite->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>

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

Thanks to Geraldine's and El Sombrero in Seattle for sustaining us while we coded away. In particular, Eugene would not have made it had it not been for that macho margarita.

COPYRIGHT & LICENSE

Top


Purple documentation  | view source Contained in the Purple distribution.