Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [books] Pre-release of Chapter 5 of Rebol - A programmer's guide

From: pwawood:g:mail at: 3-Jul-2008 18:11

Tim
> I've been using mysql-protocol (Mysql Scheme) and cgi for many years > now. I > really like it, but I think that /command would bring some > advantages, if > it can directly access the "C" API for MySQL. > > Example: Using the mysql scheme on a tcp/ip connection, I have to code > the escaping of special characters for insert and updates and code the > unescaping of special characters for retrieval. > > Using the C API from other scripting languages, the > mysql_real_escape_string() > function handles the escaping _appropriate_ to the version, and > queries are similarly unescaped. > > If command can do the same, that might be an advantage over the > mysql scheme > protocol.
The book doesn't go into such detail on /Command database access; it is after all aimed at introducing Rebol to programmers. Now that RT has included library access in the latest free versions, wouldn't it be possible to enhance Doc's scheme to include the MySQL C API functions (not withstanding any licence implications). Perhaps a note to Doc himself might catch his interest. Regards Peter