<br><br><div><span class="gmail_quote">On 8/23/06, <b class="gmail_sendername">James Masters</b> <<a href="mailto:james@masters.me.uk">james@masters.me.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm new to DBIx and have managed to get DBIx::Class working using mysql by<br>setting up a couple of test schema modules.<br><br>I don't really understand what Loader does. Does it create a whole load of<br>module files with the schema info that I would otherwise have to write out
<br>manually and then read them in? If so, presumably, this only needs to<br>happen once so do I just write a sepeare script to run once?<br><br>Or does it simply read my MySQL database tables columns and wotnot into<br>
memory every time and dispenses with the schema info modules altogether<br>(this is what I was hoping it would do).</blockquote><div><br>It can do either one, depending on how you use it. The "normal" way of using it
<br>scans the database at load time into memory and doesn't create any modules/files,<br>but you can also invoke it a different way and it will generate module files on disk,<br>which look about like a manually-written schema and can be edited from there.
<br><br>The interface for using the schema export stuff is very ugly right now, but it is<br>documented in the Schema::Loader manual. Hopefully in the not-to-distant future,<br>it will be wrapped up in a simpler commandline interface, probably by plugging
<br>some features in the existing "dbicadmin" commandline shell.<br><br>-- Brandon<br></div><br></div>