<div dir="ltr">I have an old app that uses DBI directly with Postgresql. I want to add in support for DBIx::Class into the same app. I don't want to double the number of database connections so would like to replace the method that returns a $dbh in the old app with:<div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">$schema->storage->dbh; # [1]<br></blockquote><div><br></div>The issue is the old app uses DBI with a RootClass of <a href="http://search.cpan.org/dist/DBIx-ContextualFetch/lib/DBIx/ContextualFetch.pm#EXTENSIONS">DBIx::ContextualFetch</a>.</div><div><br></div><div>I see that <span style="color:rgb(0,0,0);white-space:pre-wrap">DBIx::Class::CDBICompat::ImaDBI uses DBIx::ContextualFetch.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Is there any problem with setting the RootClass as </span><span style="color:rgb(0,0,0);white-space:pre-wrap">DBIx::ContextualFetch and running DBIC normally?</span></div><div><br></div><div><br></div><div>[1] Actually, I'd probably calll $storage->_get_dbh to reduced the number of pings.</div><div><br></div><div>-- <br><div class="gmail_signature">Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a></div>
</div></div>