tag:blogger.com,1999:blog-3887060946333002264.post6192569181697015503..comments2023-09-03T23:15:48.411-07:00Comments on Andrew Whaley's blog: Gambit MySQL client 0.2Andrew Whaleyhttp://www.blogger.com/profile/05346078852977103014noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3887060946333002264.post-89396430608673024362009-08-26T17:41:27.037-07:002009-08-26T17:41:27.037-07:00Hi Andrew
Funny, we've been doing similar stu...Hi Andrew<br /><br />Funny, we've been doing similar stuff at almost exactly the same time without bumping into each others work.<br /><br />http://search.cpan.org/dist/Net-Wire10/lib/Net/Wire10.pm<br /><br /><br />I admire how elegant your implementation is.<br />Great work! :)<br /><br />-DavidAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-56856743545770977312009-07-09T00:09:51.065-07:002009-07-09T00:09:51.065-07:00This is pretty good stuff, especially that it does...This is pretty good stuff, especially that it doesn't block. Thanks for writing it. :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-32368631393343262532009-07-03T13:17:10.879-07:002009-07-03T13:17:10.879-07:00Bravo. This is great news. Can't wait to start...Bravo. This is great news. Can't wait to start playing with it.marknoreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-59984182645459513802009-06-29T12:41:10.381-07:002009-06-29T12:41:10.381-07:00Hi Scott,
I finally worked it out - it's dow...Hi Scott, <br /><br />I finally worked it out - it's down to the fact that Gambit doesn't load macros when you load only when you include, so you'll need to include the two files rather than load them e.g. <br /><br />(include "sql.scm")<br />(include "mysql.scm")<br /><br />(with-connection) is a macro hence the problem. I'll shortly be moving this library into Black Hole so we won't have these problems as you can import functions and macros with the same ease.<br /><br />Thanks<br /><br />AndrewAndrew Whaleyhttps://www.blogger.com/profile/05346078852977103014noreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-13608220126748788682009-06-28T17:39:42.204-07:002009-06-28T17:39:42.204-07:00I'm still getting the same error.
bash-3.00$ ...I'm still getting the same error.<br /><br />bash-3.00$ gsi<br />Gambit v4.4.3<br /><br />> (load "sql")<br />"/home/----/downloads/sql.scm"<br />> (load "mysql")<br />"/home/-----/downloads/mysql.scm"<br />> (with-connection (sql-connect "localhost" 3306 "crpm" "----" "-----")<br />(pp (sql-execute "select * from person")))<br />*** ERROR IN (console)@3.2 -- Unbound variable: with-connection<br />1>Scott Hickeyhttps://www.blogger.com/profile/14246732924788969410noreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-53513249817880718282009-06-28T12:29:23.851-07:002009-06-28T12:29:23.851-07:00Well spotted Scott, there's a line missing in ...Well spotted Scott, there's a line missing in the example - I'll fix it. <br /><br />Try adding (load "sql") before the (load "mysql") and that should do it.<br /><br />ThanksAndrew Whaleyhttps://www.blogger.com/profile/05346078852977103014noreply@blogger.comtag:blogger.com,1999:blog-3887060946333002264.post-25954094149121997592009-06-25T18:48:54.134-07:002009-06-25T18:48:54.134-07:00I have tried to run your examples and I get the fo...I have tried to run your examples and I get the following error:<br /><br />Unbound variable: with-connection<br /><br />Any suggestions?Scott Hickeyhttps://www.blogger.com/profile/14246732924788969410noreply@blogger.com