
14 Sep
2010
14 Sep
'10
2:29 p.m.
On 14/09/10 14:26, Roland Bock wrote:
std::vector<record> records =
It probably should just return a range rather than a vector.
db.select<record>( sql::where(t::id() > 1000 && t::first_name() == name), sql::order_by(t::priority()(sql::desc)), sql::limit(17));
Have you considered using Proto to define and check the grammar of that language?
// the values can be accessed by their name // and are of the correct type, e.g. records.front().first_name_; // is a string records.front().middle_name_; // optional<string> because the table definition says that it can be NULL
How are first_name/middle_name/priority/id attached to the record type?