Boost logo

Boost :

Subject: Re: [boost] Request for Interest in several Modules
From: Roland Bock (rbock_at_[hidden])
Date: 2012-01-11 07:29:56

On 01/10/2012 04:11 PM, Artyom Beilis wrote:
> Hello,
> I have several modules/libraries I developed and released under Boost License.
> - CppDB Sql Connectivity

Taking an example from your documentation:

cppdb::statement <> st=sql.prepare("DELETE FROM users WHERE age<? AND role<>?");
st.bind <>(1,13);
st.bind <>(2,"moderator");

In our company we have combination of code generator and template
library which allows to do the following

TabUsers tab;
tab.remove(tab.age<13 and role!="moderator");

The compiler can then ensure correct names for tables and columns,
typesafety and correct syntax. This makes database programming much
easier because there is much less room for stupid mistakes.

It really is an enormous difference, but it requires a code generator
and I am not sure if that would be acceptable for boost. If yes: I would
really love to see a such a concept being used on top of a library like



Boost list run by bdawes at, gregod at, cpdaniel at, john at