<div dir="ltr"><span style="font-family: arial,sans-serif;">I saw this library when I was looking for solutions of my problem. This library have different approach:<br>although you use records to define your query, you should write a query but in terms of internal DSL (i.e.<span class="p"> {</span><span class="n">insert</span><span class="p">,</span><span class="n">project</span><span class="p">,[{</span><span class="n">foo</span><span class="p">,</span><span class="mi">5</span><span class="p">},{</span><span class="n">baz</span><span class="p">,</span><span class="s">"bob"</span>}]}).<br></span><pre><span style="font-family: arial,sans-serif;"><span class="p"><br>You still need to keep somewhere a table name "project", you need to serialize, say,<br>your record to proplist where name of fields should be the same as columns in DB. Otherwise you need<br>to maintain fields to columns translation as well.</span><br></span></pre><br>mekao comparable to sqerl provides more high-level abstractions, but, I suppose, not such flexible (b/c theoretically we could<br>completely cover all SQL with internal sqerl's DSL, but then why I need to use this library if I could write plain SQL?).<br><br>Jesper Louis Andersen wrote:<br><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div><br><div class="gmail_quote">On Sun, Jan 12, 2014 at 2:47 PM, Daniil Churikov <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2uqSvRva5TgJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">ddo...@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I would like to announce small library (currently under 500LoC), which intended to help in SQL queries construction.<br>

</div>The main goal is to cover very basic type of queries, and provide mechanism to easily extend it if needed.<br>
<div>Note that as one of the key concept is that you use records as db-data representation, otherwise it may not be useful for you.</div></blockquote></div><br>There is an older library which does something in the same vein:</div>

<div><br></div><div><a href="https://github.com/devinus/sqerl" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fdevinus%2Fsqerl\46sa\75D\46sntz\0751\46usg\75AFQjCNH8o3OSO6i36hSKzmOLlKy6abRcTA';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fdevinus%2Fsqerl\46sa\75D\46sntz\0751\46usg\75AFQjCNH8o3OSO6i36hSKzmOLlKy6abRcTA';return true;">https://github.com/devinus/<wbr>sqerl</a><br><br clear="all"><div><br></div>-- <br>J.
</div></div>
</blockquote></div>