Boost logo

Boost :

Subject: Re: [boost] Request for Interest in several Modules
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-01-11 13:31:55


Den 11-01-2012 13:29, Roland Bock skrev:

> 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.

Maybe we can get 90% of it by something as simple as

class Users
{
     BOOST_DECLARE_SQL_CLASS( "USERS" );

     BOOST_SQL_VAR( int, "column_age", age );
     BOOST_SQL_VAR( std::string, "column_role", role );
     ...
};

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk