|
|||||||||||
|
Re: SSQLSv2 design discussion
From: Chris Frey <cdfrey(at)foursquare.net>
Date: Wed Aug 15 2007 - 03:55:07 EDT
Looks cool to me. > option use_accessors getX As you mention later, there could be multiple styles here. Capitalization of the X could be significant: getX get_x unique Unique I assume you meant "set". > Think of the syntax of .ssqls files as a pastiche of Python and SQL I like this syntax more than XML. > The "option" statements let you control naming scheme details. By If I understand what you mean by style, this seems like a lot of work for nothing. Nobody should care what indentation is used in a file full of generated code. What does matter (and perhaps you were thinking of this all along) is the interface, and how the programmer calls it. This is the kind of style difference between get_item() and getItem() and GetItem(). I agree with that. This brought an interesting idea to mind though: would there be any use in putting actual C++ code in the .ssqls file, that would get passed on to the generated file? In this case, the .ssqls file *becomes* the code, and the generated .cc file is just another .o from the programmer's point of view. Just a thought. I'm not really here. :-) This just looked like an interesting post, and I couldn't help but read it. :-) I wish I had more time to hack on mysql++... I don't even manage to read the stable releases unfortunately. Where does portable database support stand, btw? (i.e. mysql, postgres, sqlite, etc) Is it any easier to implement now than it was before? My interest still lies there, for some odd reason. :-)
-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=lists@pantek.comReceived on Wed Aug 15 03:55:54 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:02:59 EDT |
||||||||||
|
|||||||||||