dbTalk Databases Forums  

Re: SSQLS v2 :)

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Re: SSQLS v2 :) in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Warren Young
 
Posts: n/a

Default Re: SSQLS v2 :) - 11-21-2006 , 06:09 PM






Королев Илья wrote:
Quote:
I'm studying expanded SSQLS code and I have a question.
As I can see, field_list() (for example) return a temporary object of
ClassName>_field_list. And real output to stream operate with it. I wonder,
what are advantages of such approach? Why we can't just return std::string in
field_list()? Disadvantage is heavy *.h.
The advantage is that a list of field names is more flexible than a
single string listing the fields. This advantage matters if you don't
need all of the fields, or you need to have them in multiple formats. I
would only let you change this as you suggest if you can prove that all
uses of the field list objects only need the fields in a single format,
and they need all of them, always.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: SSQLS v2 :) - 11-27-2006 , 10:58 PM






??????? ???? wrote:
Quote:
First revision of SSQLS v2
I'm going to have to take some time to study this. I hope to get back
to you with more commentary soon.

Quote:
Require Perl::Template
It's fine to prototype the mechanism with this, but I don't think we can
get away with this for the final version. Windows partisans seem to
have an aversion to installing interpreters. We'll need to replace it
with a C++ implementation for the final version, I think.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: SSQLS v2 :) - 11-29-2006 , 07:12 AM



Королев Илья wrote:
Quote:
Can you advice me a good C++ template engine?
The closest thing I can think of is XSLT. This would make sense if, as
I originally suggested, we declare SSQLSv2 structures using some form of
XML. Then we don't even have to build our own translator tool: we can
use xsltproc, or something like that. The hard part is in maintaining
the XSL code.

If you don't like that, the best thing I can suggest is to try one of
the new programmers' search engines that have popped up recently. I
haven't had a good reason to use one, though, so I don't have any of
their names in mind right now.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.