Boost logo

Boost :

Subject: Re: [boost] sqlpp11: SQL for C++
From: Abel Sinkovics (abel_at_[hidden])
Date: 2013-11-11 17:29:43


On 2013-11-11 23:16, Roland Bock wrote:
> I see use cases for printf and regex for instance, where the user
> provides a textual representation of something at compile time. In those
> cases, compile time validation of strings is a wonderful tool, and I
> have highest respect for it.
> But in the context of sqlpp11 I don't see how or why I should use it?
> The library is constructing the query string at runtime. There is no
> string to be validated at compile time. This is a major difference to
> most other C++ SQL libraries.
You can make it possible for the user to provide a textual
representation of the SQL query in the SQL language. His SQL queries are
then validated at compile-time. If you want to move away from SQL and
build your own DSL for writing SQL-like queries (and then generate the
SQL queries from that), it won't help.


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