<br><br><div class="gmail_quote">On Nov 30, 2007 11:39 PM, Hans-Christoph Steiner &lt;<a href="mailto:hans@eds.org">hans@eds.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div><div>If you use a selector for every message into this object, then you can get rid of the &quot;sqlite&quot; prefix, and it would be very natural for people used to Pd. &nbsp;For example:
</div><div><br></div><div>[open $1(</div><div>[close(</div><div>[export $1( &nbsp; - this could be used to export the database to a .sql file</div><div></div></div></div></div></blockquote><div><br class="webkit-block-placeholder">
</div><div>This is doable...</div><div><br class="webkit-block-placeholder"></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div>
<div>Instead of commas, you could reuse the same message used for message boxes [addcomma(. &nbsp;Plus [tkwidgets/text] &nbsp;(its in Pd-extended now) will allow you to type commas and have them sent in messages, but they&#39;ll be escaped. &nbsp;Here&#39;s an example combined the syntax of [textfile] and message boxes:
<br></div><div><br></div><div>[clear (</div><div>[add&nbsp;insert into mytable (name (</div><div>[addcomma (</div><div>[add&nbsp;id (</div><div>[addcomma (</div><div>[add&nbsp;&nbsp;data) values (&#39;$1&#39; (</div><div>[addcomma (</div><div>
[add $2 (</div><div>[addcomma (</div><div>[add $3) &nbsp;(</div><div>[submit (</div><div><div><br></div><div>It&#39;s not pretty, but it follows Pd-style messages and it would work.</div></div></div></div></blockquote><div><br class="webkit-block-placeholder">
</div><div>At the same time, doing it in the fashion we are now would make it more SQL-like. While I understand the idea of doing things in a PD-like way, taking it too far, and mangling the SQL might make the object almost unfriendly, if not downright unusable. Trying to keep the SQL as close to the real syntax, I think is very important.
</div><div><br class="webkit-block-placeholder"></div><div>It would be nice to hear from others on this topic. Anyone?</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>
Mike</div><div><br class="webkit-block-placeholder"></div><div></div></div>