|
Boost : |
Subject: Re: [boost] SQL client library ?
From: joel (joel.falcou_at_[hidden])
Date: 2009-09-09 11:55:58
Craig Henderson wrote:
> In the absence of whitespace overloading, the only way to achieve this
> syntax is to use the preprocessor to define SELECT, FROM and WHERE to be
> something than can invoke a binary operator. This is less than ideal as the
> C++ preprocessor is global, so you can't restrict SELECT definition to be in
> the database namespace. It is impossible to support SQL aliases or tablename
> prefixes with this syntax, though.
I think having select(a,b,c).from() is already concise & readable and
not bound to macro limitation.
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk