|
Boost : |
Subject: Re: [boost] sqlpp11: SQL for C++
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2013-11-11 05:49:22
On 09-11-2013 23:03, Roland Bock wrote:
> Hi,
>
>
> sqlpp11 is a template library representing an embedded domain specific
> language (EDSL) that allows you to
>
> * define types representing tables and columns,
> * construct type safe queries checked at compile time for syntax
> errors, type errors, name errors and even some semantic errors,
> * interpret results by iterating over query-specific structs with
> appropriately named and typed members.
Very interesting.
Have you considered a syntax like
auto results = db >> select(Person.name,Person.age) >> from(foo) >>
where( Person.age > 42);
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk