Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 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

    SPOPS::SQLInterface 0.87

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Chris Winters | More programs
    Perl Artistic License / FREE
    August 6th, 2008, 15:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    SPOPS::SQLInterface description

    SPOPS::SQLInterface is a Perl module with generic routines for DBI database interaction.

    SPOPS::SQLInterface is a Perl module with generic routines for DBI database interaction.

    SYNOPSIS

    # Make this class a parent of my class

    package My::DBIStuff;
    use SPOPS::SQLInterface;
    @My::DBIStuff::ISA = qw( SPOPS::SQLInterface );

    # You should also be able to use it directly, but you
    # need to pass in a database object with every request

    use SPOPS::SQLInterface;
    my $dbc = 'SPOPS::SQLInterface';
    my $db = DBI->connect( ... ) || die $DBI::errstr;
    my $rows = $dbc->db_select({ select => [ qw/ uid first_name last_name / ],
    from => [ 'users' ],
    where => 'first_name = ? or last_name = ?',
    value => [ 'fozzie', "th' bear" ],
    db => $db });
    foreach my $row ( @{ $results } ) {
    print "User ID $row->[0] is $row->[1] $row->[2]n";
    }


    You are meant to inherit from this class, although you can use it as a standalone SQL abstraction tool as well, as long as you pass the database handle into every routine you call.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    database interaction | SQL interface | Perl module | SQL | database | interaction

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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