Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    GBPVR::CDBI 0.04

    Download button

    No screenshots available
    Downloads: 661  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    12 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Westbrook | More programs
    Perl Artistic License / FREE
    June 19th, 2008, 13:18 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    GBPVR::CDBI description

    GBPVR::CDBI is a database abstraction for GBPVR.

    GBPVR::CDBI is a database abstraction for GBPVR.

    SYNOPSIS

    Example to search the program listings:

    use GBPVR::CDBI::Programme;
    my @rows = GBPVR::CDBI::Programme->search_like(name => 'Star%');

    Example to display the recorded shows:

    use GBPVR::CDBI::RecordingSchedule;
    my @rows = GBPVR::CDBI::RecordingSchedule->search(status => 2);
    foreach my $row (@rows){
    printf "-----------------------n";
    printf "%s - '%s'n", $row->programme_oid->name, $row->programme_oid->sub_title;
    printf "n", $row->filename;
    printf " %sn", $row->programme_oid->description;
    }

    Example to show pending shows (yes, you should be able to order_by via search() and not have to call sort):

    use GBPVR::CDBI::RecordingSchedule;
    my @rows = GBPVR::CDBI::RecordingSchedule->search(status => 0);
    @rows = sort { $a->manual_start_time cmp $b->manual_start_time } @rows;
    foreach my $row (@rows){
    printf "%-20s %8s %s - '%s'n",
    $row->manual_start_time,
    $row->programme_oid->channel_oid->name,
    $row->programme_oid->name,
    $row->programme_oid->sub_title;
    printf " %sn", $row->programme_oid->description;
    }

    Example to force all scheduled 'Simpsons' recordings to be low quality:

    use GBPVR::CDBI::RecordingSchedule;
    my $iterator = GBPVR::CDBI::RecordingSchedule->retrieve_all;
    while( my $row = $iterator->next ){
    next unless $row->programme_oid->name =~ /simpsons/i;
    next if $row->quality_level == 2;
    $row->quality_level(2);
    $row->update;
    }
    GBPVR::CDBI::RecordingSchedule->dbi_commit;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    database abstraction | GBPVR abstraction | Perl module | GBPVR | CDBI | database

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM