Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Database Tools

    DBIx-Connector 0.33

    download button


    Downloads: 267  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    David Wheeler | More scripts
    search.cpan.org
    Perl License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Perl
    April 1st, 2010, 15:17 GMT [view history]
    C: \ Database Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    DBIx-Connector description

    This is a fast and safe DBI connection and transaction management for Perl

    DBIx::Connector provides a simple interface for fast and safe DBI connection and transaction management.

    Connecting to a database can be resource expensive, so the developer won't want his application to re-connect every time needed to run a query.

    The efficient thing to do is to hang on to a database handle to maintain a connection to the database in order to minimize that overhead.

    DBIx::Connector lets do that without having to worry about dropped or corrupted connections.

    Here are some key features of "DBIx-Connector":

    · Fork Safety - Like Apache::DBI, but unlike `connect_cached()`, DBIx::Connector will return a new database handle if a new process has been `fork`ed. This happens all the time under mod_perl, in POE> applications, and elsewhere.
    · Thread Safety - Unlike Apache::DBI or `connect_cached()`, DBIx::Connector will return a new database handle if a new thread has been spawned. As with `fork`ing, spawning a new thread can break database connections.
    · Works Anywhere - Unlike Apache::DBI, DBIx::Connector runs anywhere -- inside of mod_perl or not. Why limit yourself?
    · Explicit Interface - DBIx::Connector has an explicit interface. There is none of the magical action-at-a-distance crap that Apache::DBI is guilty of, and no global caching. I've personally diagnosed a few issues with Apache::DBI's magic, and killed it off in two different applications in favor of `connect_cached()`, only to be tripped up by other gotchas. No more.
    · Optimistic Execution - If you use `run()` and `txn()`, the database handle will be passed without first pinging the server. For the 99% or more of the time when the database is just there, you'll save a ton of overhead without the ping.
    · Transaction Management - Borrowing from Class, DBIx::Connector offers an interface that efficiently handles the scoping of database transactions so that you needn't worry about managing the transaction yourself. Even better, it offers an interface for savepoints if your database supports them. Within a transaction, you can scope avepoints to behave like subtransactions, so that you can save some of your work in a transaction even if some of it fails.

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

    · A few useful documentation improvements.
    · Added `in_txn()`, which returns true when the connection is in a transaction and false when it's not.



    TAGS:

    DBI driver | database connection | Perl interface | DBI | driver | connection

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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