<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I&#39;d create some sort of proxy object that stores a ref to $schema and does the -&gt;dbh_do magic behind the scenes whenever you call a method on it ...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 September 2015 at 18:23, Bill Moseley <span dir="ltr">&lt;<a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Sat, Sep 26, 2015 at 8:54 AM, Peter Rabbitson <span dir="ltr">&lt;<a href="mailto:rabbit+dbic@rabbit.us" target="_blank">rabbit+dbic@rabbit.us</a>&gt;</span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
Is there any problem with setting the RootClass as DBIx::ContextualFetch<br>
and running DBIC normally?<br>
</span></blockquote>
<br>
I don&#39;t think there will be, but this has not been tested either.</blockquote><div><br></div></span><div>Thanks, Peter.</div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br></span>
I would wrap the entire app call as:<br>
<br>
 $storage-&gt;dbh_do(sub { app goes here using $_[1] } )<br></blockquote><div><br></div></span><div>I looked at that, but I guess I&#39;m not clear how to use accomplish it since there&#39;s hundreds (if not thousands) of existing individual direct DBI calls in the app.</div><div><br></div><div> </div><div>Thanks,</div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a></div>
</font></span></div></div>
<br>_______________________________________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a><br></blockquote></div><br></div>