<div dir="ltr">I think we did something silly like doing a meaningless select/ping type operation just to make sure everything was cool in the DBIx application I worked on years ago.  There may be a better answer these days though?<div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 12:53 PM, Alberto Luaces <span dir="ltr">&lt;<a href="mailto:aluaces@udc.es" target="_blank">aluaces@udc.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I stumped over a problem when learning to use DBIx::Class.  I had a typo<br>
on the filename holding the database, but no exception was thrown until<br>
I wanted to retrieve some results, which was not intuitive for me.  How<br>
do you check for a successful connection?<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
use My::Schema;<br>
<br>
# Does not die even the filename is wrong!<br>
my $r = My::Schema-&gt;connect(&quot;dbi:SQLite:expgraf.db&quot;) or die(&#39;conn error&#39;);<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alberto<br>
<br>
<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">David Ihnen<br>Voice contact (562) 743-1807</div>
</div>