website/index.html in sqld4r-0.0.1 vs website/index.html in sqld4r-0.0.2

- old
+ new

@@ -31,11 +31,11 @@ <div id="main"> <h1>sqld4r</h1> <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/sqld4r"; return false'> <p>Get Version</p> - <a href="http://rubyforge.org/projects/sqld4r" class="numbers">0.0.1</a> + <a href="http://rubyforge.org/projects/sqld4r" class="numbers">0.0.2</a> </div> <h1>&#x2192; &#8216;sqld4r&#8217;</h1> <h2>What is this?</h2> @@ -44,10 +44,22 @@ <p>The sqld4r is model generator for SQLDesigner(http://ondras.zarovi.cz/sql/demo/).<br /> If you have a xml file of the SQLDesigner, you will be able to generate migration files and model files on a minute.<br /> I recommend that you use it with a rocketstarter gem.<br /></p> + <h2>Features</h2> + + + <ul> + <li>generate migration files and model files from SQLDesigner xml file.<br /></li> + <li>generate migration file for your model&#8217;s PKs and FKs.<br /></li> + <li>execute command list before finish.<br /> +(exp., execute &#8216;rake db:create:all&#8217; for migrate to your database).<br /></li> + <li>save the DBDesigner xml file.<br /></li> + </ul> + + <h2>Installing</h2> <p><pre class='syntax'><span class="ident">gem</span> <span class="ident">install</span> <span class="ident">sqld4r</span></pre></p> @@ -69,10 +81,58 @@ <span class="keyword">and</span> <span class="ident">more</span><span class="punct">...</span> <span class="constant">Usage</span><span class="punct">:</span> <span class="ident">sqld4r</span> <span class="punct">--</span><span class="ident">help</span> </pre></p> + <h2>How to use</h2> + + + <p>1. Set environment valiable if you want to change a config file path.</p> + + + <p><pre class='syntax'> +<span class="global">$ </span><span class="ident">export</span> <span class="constant">SQLD4R_CONF</span><span class="punct">=~/</span><span class="regex">.sqld4r<span class="normal"> +</span></span></pre></p> + + + <p>- Default is $HOME/.sqld4r</p> + + + <p>2. Create config file.</p> + + + <p><pre class='syntax'> +<span class="global">$ </span><span class="ident">sqld4r</span> <span class="punct">--</span><span class="ident">init</span> +</pre></p> + + + <p>3. Modify default values and command list.</p> + + + <p><pre class='syntax'> +<span class="global">$ </span><span class="ident">vi</span> ~<span class="punct">/.</span><span class="ident">sqld4r</span> +<span class="global">$ </span><span class="ident">vi</span> ~<span class="punct">/</span><span class="ident">sqld4r_execute_commands</span> +</pre></p> + + + <p>4. Test for setting</p> + + + <p><pre class='syntax'> +<span class="global">$ </span><span class="ident">sqld4r</span> <span class="punct">--</span><span class="ident">check</span> +</pre></p> + + + <p>5. Generate migration files and model files from SQLDesigner xml file.</p> + + + <p><pre class='syntax'> +<span class="global">$ </span><span class="ident">cd</span> <span class="ident">your</span><span class="punct">-</span><span class="ident">rails</span><span class="punct">-</span><span class="ident">root</span> +<span class="global">$ </span><span class="ident">sqld4r</span> <span class="punct">/</span><span class="ident">path</span><span class="punct">/</span><span class="ident">to</span><span class="punct">/</span><span class="constant">SQLDesigner</span><span class="punct">.</span><span class="ident">xml</span> +</pre></p> + + <h2>Forum</h2> <p><a href="http://groups.google.com/group/sqld4r" title="English">http://groups.google.com/group/sqld4r</a> <a href="http://groups.google.co.jp/group/sqld4r" title="Japanese">http://groups.google.co.jp/group/sqld4r</a></p> @@ -118,10 +178,10 @@ <h2>Contact</h2> <p>Comments are welcome. Send an email to <a href="mailto:maimuzo@gmail.com" title="maimuzo">Yusuke Ohmichi</a> via the <a href="http://groups.google.com/group/sqld4r">forum</a></p> <p class="coda"> - <a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>, 22nd June 2008<br> + <a href="maimuzo@gmail.com">Yusuke Ohmichi(maimuzo)</a>, 24th June 2008<br> Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a> </p> </div> <!-- insert site tracking codes here, like Google Urchin -->