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

    DBIx::BulkLoader::Mysql 1.006

    Download button

    No screenshots available
    Downloads: 113  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Shipper | More programs
    Perl Artistic License / FREE
    December 25th, 2011, 07:36 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DBIx::BulkLoader::Mysql description

    Perl extension for MySQL bulk loading

    DBIx::BulkLoader::Mysql is a simple buffering bulk loader interface for MySQL.

    SYNOPSIS

     use DBIx::BulkLoader::Mysql;

     # non repeating portion of the insert statement
     my $insert='insert into bulk_insert (col_a,col_b,col_c) values ';

     # repeating portion of the insert statement
     my $placeholders='(?,?,?)';

     # how many rows to buffer until insert is called
     my $bulk_insert_count=5;

     # db connection
     my $dbh=DBI->connect(db connection info here);
     my $placeholder_count=3;

     my ($bulk,$error)=DBIx::BulkLoader::Mysql->new(
     dbh=>$dbh
     ,sql_insert=>$insert
     ,placeholders=>$placeholders
     );
     die $error unless $bulk;

     for( 1 .. 50 ) {
     $bulk->insert(qw(a b c));
     }
     # inserted 50 rows at once

     $bulk->insert(qw(l l x));
     # inserted 0 rows

     $bulk->insert(qw(l l x));
     # inserted 0 rows

     $bulk->flush;
     # inserted 2 rows 1 at a time



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    MySQL bulk | bulk loader | Perl module | Perl | MySQL | bulk

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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