U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » Syntactic sugar
Syntactic sugar [message #18767] Mon, 20 October 2008 14:22 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

I think it would be nice to add to SqlId interface overloaded [] operator:
SqlCol operator [] (const SqlId& id) const;

which let us to write
Select(ID, CUSTOMER[NAME], PRODUCT[QUANTITY])...

insead of
Select(ID, NAME.Of(CUSTOMER), QUANTITY.Of(PRODUCT))...


What do you think?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: linking error trying to compile SQL_MySql demo on linux fedora 9
Next Topic: SQL*, SQL&, SQL*:: ???
Goto Forum:
  


Current Time: Mon Apr 27 19:17:43 GMT+2 2026

Total time taken to generate the page: 0.00854 seconds