Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    DBI 1.619

    Download button

    No screenshots available
    Downloads: 666  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.7/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tim Bunce | More programs
    GPL / FREE
    April 25th, 2012, 12:51 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DBI description

    A database independent interface for Perl

    DBI is a database independent interface for Perl.

    SYNOPSIS

    use DBI;

    @driver_names = DBI->available_drivers;
    %drivers = DBI->installed_drivers;
    @data_sources = DBI->data_sources($driver_name, %attr);

    $dbh = DBI->connect($data_source, $username, $auth, %attr);

    $rv = $dbh->do($statement);
    $rv = $dbh->do($statement, %attr);
    $rv = $dbh->do($statement, %attr, @bind_values);

    $ary_ref = $dbh->selectall_arrayref($statement);
    $hash_ref = $dbh->selectall_hashref($statement, $key_field);

    $ary_ref = $dbh->selectcol_arrayref($statement);
    $ary_ref = $dbh->selectcol_arrayref($statement, %attr);

    @row_ary = $dbh->selectrow_array($statement);
    $ary_ref = $dbh->selectrow_arrayref($statement);
    $hash_ref = $dbh->selectrow_hashref($statement);

    $sth = $dbh->prepare($statement);
    $sth = $dbh->prepare_cached($statement);

    $rc = $sth->bind_param($p_num, $bind_value);
    $rc = $sth->bind_param($p_num, $bind_value, $bind_type);
    $rc = $sth->bind_param($p_num, $bind_value, %attr);

    $rv = $sth->execute;
    $rv = $sth->execute(@bind_values);
    $rv = $sth->execute_array(%attr, ...);

    $rc = $sth->bind_col($col_num, $col_variable);
    $rc = $sth->bind_columns(@list_of_refs_to_vars_to_bind);

    @row_ary = $sth->fetchrow_array;
    $ary_ref = $sth->fetchrow_arrayref;
    $hash_ref = $sth->fetchrow_hashref;

    $ary_ref = $sth->fetchall_arrayref;
    $ary_ref = $sth->fetchall_arrayref( $slice, $max_rows );

    $hash_ref = $sth->fetchall_hashref( $key_field );

    $rv = $sth->rows;

    $rc = $dbh->begin_work;
    $rc = $dbh->commit;
    $rc = $dbh->rollback;

    $quoted_string = $dbh->quote($string);

    $rc = $h->err;
    $str = $h->errstr;
    $rv = $h->state;

    $rc = $dbh->disconnect;


    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · connect() was optimized to remove redundant FETCH.

      


    TAGS:

    database interface | Perl interface | Perl module | DBI | database | Perl



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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