<br><br><div class="gmail_quote">On Jan 4, 2008 1:31 AM, 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 class="Ih2E3d"><div><br></div></div><div>I just had a look at ftm.sqlite.help.pd. &nbsp; &nbsp;They use a custom and very specialized message box to deal with the comma issue. &nbsp;I think your technique of handling the commas is much more natural to deal with, and probably more flexible.
</div></div></div></blockquote><div><br class="webkit-block-placeholder"></div><div>Well, I will say that I like the fact of using the COLD inlet for the SQL, it removes all the &quot;wrapping&quot; keywords, as you said. I also think that it will make for the Programmatic generation of SQL much easier. One thing I was playing with, I kind of discovered that it would be best to encourage everyone using dynamic generation to do the whole thing into a single message box that is then passed to the Query object in one fell swoop. The mechanics of trying to stuff SQL into the Query object in smaller chunks might get a little confusing. At least with the use of a single message box, you can see the whole of the SQL statement before it gets sent.
</div><div>&nbsp;</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></div><div><br></div><div>The part that I still can&#39;t see a clear way to deal with is handling the queries and the results. &nbsp;I had one thought inspired by your send/receive symbols. &nbsp;Perhaps the first argument to the [sql_query] object would be like your send/receive symbol, except that it would be the selector in all of the results returned from that query. &nbsp;Then there could be one database object that outputs the query data thru an outlet, and the results would still be sortable using [route].
</div></div></div></blockquote><div><br class="webkit-block-placeholder"></div><div>I have created an example. I also made some changes to the Database object to allow it to recognize a NULL value from the database. NULL&#39;s I think will be one datatype that is kind of difficult to deal with, as a Float object can only be returned as a NULL as in the following:
</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>select max(id) from table;</div><div><br class="webkit-block-placeholder"></div><div>AND, there is no data in &#39;table&#39;. This will return a NULL value, and NOT 0. I also think that it should be left to the person designing the database and the PD stuff using a Database object to worry about the differences. The reason behind that is that a User will understand the schema of their database, and should program accordingly.
</div><div><br></div><div>I am going to post this up on the Pure Data site, as I still have yet to figure out the CVS stuff. I will do that this afternoon.</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>&nbsp;</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></div><div><br></div><div>.hc</div><div><div></div><div class="Wj3C7c"><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div class="gmail_quote"><div> </div><div><br></div><div>Mike</div><div>
<br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><br>.hc<br><div><div></div><div><br>On Thu, 3 Jan 2008, Mike McGonagle wrote:<br><br>&gt; So, it would appear that I am wrong, it is for PD, but in the README, it
<br>&gt; says it is not working...<br>&gt; <a href="http://ftm.cvs.sourceforge.net/ftm/ftm-sql/pd/README.txt?revision=1.1&amp;view=markup" target="_blank">http://ftm.cvs.sourceforge.net/ftm/ftm-sql/pd/README.txt?revision=1.1&amp;view=markup
</a><br>&gt;<br>&gt; It also goes through another Database Layer, rather than compiling directly <br>&gt; into the external. I still can&#39;t figure out its API in PD...<br>&gt;<br>&gt;<br>&gt; Mike<br>&gt;<br>&gt; PS, sorry for all these messages...
<br>&gt;<br>&gt; On Jan 3, 2008 1:40 PM, Mike McGonagle &lt;<a href="mailto:mjmogo@gmail.com" target="_blank"> mjmogo@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; <a href="http://puredata.info/community/projects/software/ftm/" target="_blank">
http://puredata.info/community/projects/software/ftm/</a><br>&gt;&gt; Hans,<br>&gt;&gt;<br> &gt;&gt; This is the URL for the FTM stuff on the PureData site. It appears that<br>&gt;&gt; this code is still Max specific, and there are a lot of Macros so I can&#39;t
<br>&gt;&gt; really tell what is going on at first glance. <br>&gt;&gt;<br>&gt;&gt; I don&#39;t have Max, so if you know anyone that might be using this, and they<br>&gt;&gt; could send some screen shots of what they have, that would be really useful.
<br>&gt;&gt; IOhannes says he doesn&#39;t have Max either, so I don&#39;t know anyone who might <br>&gt;&gt; have access to these things.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Mike<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Jan 3, 2008 1:13 AM, Hans-Christoph Steiner &lt; 
<a href="mailto:hans@eds.org" target="_blank">hans@eds.org</a>&gt; wrote: <br>&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; You should have CVS access now, so if you check this into CVS, then it<br>&gt;&gt;&gt; shouldn&#39;t be too hard to add it to the nightly builds. &nbsp;That certainly makes
<br>&gt;&gt;&gt; it easier for people to test it. <br>&gt;&gt;&gt;<br>&gt;&gt;&gt; .hc<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Jan 2, 2008, at 8:19 AM, Mike McGonagle wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Ed,<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt; I really doubt that anyone has tried this yet, as this is just the first <br>&gt;&gt;&gt; release, and even that is very preliminary. We are still trying to get the<br>&gt;&gt;&gt; programming interface down in PD.
<br>&gt;&gt;&gt; You may be able to try taking a basic makefile from some other external. <br>&gt;&gt;&gt; The only difference here is that you also need to compile the Sqlite3 code<br>&gt;&gt;&gt; into an object file. It then gets linked up with the SQLdb object. You may,
<br>&gt;&gt;&gt; depending on what &#39;warning&#39; you ask for, see a lot of message. I have yet to <br>&gt;&gt;&gt; find any troubles with the resulting compiled objects. You can check with<br>&gt;&gt;&gt; the SQLite site for details, but probably won&#39;t need to...
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I do have access to a Ubuntu (GG) install, so I can try to figure <br>&gt;&gt;&gt; something out there, but that won&#39;t happen for a few days.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; BUT, if anyone does create a makefile, please forward it to me, and I
<br>&gt;&gt;&gt; can add it to the main makefile. <br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Mike<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Jan 2, 2008 9:49 AM, Ed Kelly &lt; <a href="mailto:morph_2016@yahoo.co.uk" target="_blank">
morph_2016@yahoo.co.uk</a>&gt; wrote:<br> &gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi there,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; has anyone had any experience of compiling Mogo&#39;s SQLdb v0.0 for<br>&gt;&gt;&gt;&gt; linux? The makefile refers to the OSX SDK...
<br>&gt;&gt;&gt;&gt; <br>&gt;&gt;&gt;&gt; peace,<br>&gt;&gt;&gt;&gt; Ed<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Lone Shark &quot;Aviation&quot; out now on <a href="http://www.pyramidtransmissions.com" target="_blank">http://www.pyramidtransmissions.com 
</a><br>&gt;&gt;&gt;&gt; <a href="http://www.myspace.com/sharktracks" target="_blank">http://www.myspace.com/sharktracks</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; ------------------------------<br>&gt;&gt;&gt;&gt; Support the World Aids Awareness campaign this month with Yahoo! for 
<br></div></div>&gt;&gt;&gt;&gt; Good&lt;<a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/" target="_blank">http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/ 
</a>&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; _______________________________________________<br><div>&gt;&gt;&gt;&gt; <a href="mailto:PD-list@iem.at" target="_blank">PD-list@iem.at</a> mailing list<br>&gt;&gt;&gt;&gt; UNSUBSCRIBE and account-management -&gt; 
<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; -- 
<br>&gt;&gt;&gt; Peace may sound simple?one beautiful word? but it requires everything we<br>&gt;&gt;&gt; have, every quality, every strength, every dream, every high ideal.<br>&gt;&gt;&gt; ?Yehudi Menuhin (1916?1999), musician 
<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; <a href="mailto:PD-list@iem.at" target="_blank">PD-list@iem.at</a> mailing list<br>&gt;&gt;&gt; UNSUBSCRIBE and account-management -&gt;<br>
&gt;&gt;&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank"> http://lists.puredata.info/listinfo/pd-list</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ----------------------------------------------------------------------------
<br> &gt;&gt;&gt;<br>&gt;&gt;&gt; Looking at things from a more basic level, you can come up with a more<br>&gt;&gt;&gt; direct solution... It may sound small in theory, but it in practice, it can<br>&gt;&gt;&gt; change entire economies. &nbsp; &nbsp; &nbsp;- Amy Smith 
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; Peace may sound simple?one beautiful word? but it requires everything we<br>&gt;&gt; have, every quality, every strength, every dream, every high ideal. 
<br>&gt;&gt; ?Yehudi Menuhin (1916?1999), musician<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Peace may sound simple?one beautiful word? but it requires everything we<br>&gt; have, every quality, every strength, every dream, every high ideal. 
<br>&gt; ?Yehudi Menuhin (1916?1999), musician<br>&gt;<br><br></div> &nbsp; &nbsp; &nbsp; &nbsp;zen<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ [D [D [D [D<br></blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal. 
<br>—Yehudi Menuhin (1916–1999), musician</blockquote></div></div></div><br><div> <span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br><div><br></div><div><br></div><div><br></div><div>----------------------------------------------------------------------------<br></div><div><br></div><div>&#39;You people have such restrictive dress for women,' she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day.&nbsp; -&nbsp;"Hijab Scene #2&quot;, by&nbsp;Mohja Kahf
</div><br></span> </div><br></div></blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.
<br>—Yehudi Menuhin (1916–1999), musician