Name

Bif::DB - helper methods for a read-only bif database

Version

0.1.5_8 (yyyy-mm-dd)

Synopsis

use strict;
use warnings;
use Bif::DB;

# Bif::DB inherits from DBIx::ThinSQL, which inherits from DBI.
my $db = Bif::DB->connect( $dsn );

# Read only operations on a bif database:
my @ids = $db->get_nodes( ':a3be2ff' );

Description

Bif::DB is a DBI derivative that provides various read-only methods for retrieving information from a bif repository. For a read-write equivalent see Bif::DBW. The read-only and read-write parts are separated for performance reasons.

Methods

get_changes( $token ) -> @HashRefs
Looks up the change identified by .$ID or matching .:$UUID and returns a list of hash references containing the following keys:
get_nodes( $token ) -> @HashRefs
Looks up the node(s) identified by $ID or matching :$UUID and returns a list of hash references containing the following keys:
The list is sorted by hub name then by project path.
NOTE: The underlying DBIx::ThinSQL method returns an Array References to the list in scalar context.
project_status_ids( $project_id, $kind, @status ) -> \@ids, \@invalid
Takes a project ID, a thread type (task, issue, etc) and a list of status names and returns an arrayref of matching IDs, and an arrayref of invalid names. This method will silently ignore any @status which are undefined.

Author

Mark Lawrence <nomad@null.net>

Copyright And License

Copyright 2013-2017 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.