<p>Same as jhthorsen's original PR.<br>
Rebased and fixed for changes since.</p>

<p>I'll be going through testing of this in the coming week.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/gbjk/dbix-class lazy_load_sources</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/dbsrgits/dbix-class/pull/59'>https://github.com/dbsrgits/dbix-class/pull/59</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add support for load_namespaces(lazy_load =&gt; 1, ...)</li>
  <li>lazy_load: sources() returns available source names</li>
  <li>Made fa96ac0 work wit the rest of the test suite</li>
  <li>Fix lazy load sources for latest releases</li>
  <li>Fix connect vivifying all sources anyway</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/59/files#diff-0">lib/DBIx/Class/Schema.pm</a>
    (56)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/59/files#diff-1">t/39load_namespaces_lazy.t</a>
    (39)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/dbsrgits/dbix-class/pull/59/files#diff-2">t/lib/DBICNSTest/Result/R.pm</a>
    (13)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/59.patch'>https://github.com/dbsrgits/dbix-class/pull/59.patch</a></li>
  <li><a href='https://github.com/dbsrgits/dbix-class/pull/59.diff'>https://github.com/dbsrgits/dbix-class/pull/59.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/59">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNTcyMzI0MywiZGF0YSI6eyJpZCI6NDE3NzkxOTd9fQ==--4c10bf78f29be916c232484ef55c765109b6b372.gif" width="1" /></p>