forgot to mention that yesod console would use ghci<br><br><div class="gmail_quote">On Sun, Jun 26, 2011 at 4:55 PM, Greg Weber <span dir="ltr">&lt;<a href="mailto:greg@gregweber.info">greg@gregweber.info</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div class="im">On Sun, Jun 26, 2011 at 4:20 PM, Eric Schug <span dir="ltr">&lt;<a href="mailto:schugschug@gmail.com" target="_blank">schugschug@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
It does not seem obvious to me how to perform the equivalent of<br>
<br>
SELECT * FROM table_name<br>
SELECT field1,field2 FROM table_name<br>
<br>
examples show something of the form<br>
rows &lt;- runDB $ selectList [ Field1Eq value1, Field2Gt value2] [ ] 0 0<br>
But I don&#39;t see how the name of the table is determined nor how to select additional fields to extract.<br>
<br>
What would this do?<br>
rows &lt;- runDB $ selectList [ ] [ ] 0 0<br></blockquote><div><br></div></div><div>There is only one way to find out :)</div><div><br></div><div>Speaking of which, we should create a `yesod console` command so that it is easy to play around with the database. Basically it connects to the database and gets you ready to run Persistent queries.</div>

<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
______________________________<u></u>_________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org" target="_blank">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/web-devel</a><br>
</blockquote></div></div><br>
</blockquote></div><br>