in reply to Handle DBI connection lost

I've been pretty happy using DBIx::Connector.

Replies are listed 'Best First'.
Re^2: Handle DBI connection lost
by bash (Scribe) on Feb 27, 2017 at 12:47 UTC
    Yep, i've looked at this module. Unfortunately it goes by way 1, i.e. ping'ing server before every request.

      You sure?

      "In fixup mode, DBIx::Connector executes the block without pinging the database. But in the event the block throws an exception, if DBIx::Connector finds that the database handle is no longer connected, it will reconnect to the database and re-execute the block."
        Oh... sorry. I missed to say that we have many sql related code and main idea is to substitute DBI $dbh with something other that handle reconnection with the same API.