|
Boost : |
Subject: Re: [boost] sqlpp11: SQL for C++
From: Rodrigo Madera (rodrigo.madera_at_[hidden])
Date: 2013-11-11 16:07:27
On Mon, Nov 11, 2013 at 7:02 PM, Klaim - Joël Lamotte <mjklaim_at_[hidden]>wrote:
> On Mon, Nov 11, 2013 at 9:59 PM, Christof Donat <cd_at_[hidden]> wrote:
>
> > No. It uses the preprocessor to generate something like
> >
> > metaparse::string<'s','e','l','e','c','t',' ','n',',...>
> >
> doesn't it still makes impossible to have variables in the request?
In theory, you could bind using placeholders like :a, :b.
I.e.: string<'name', '=:a ', 'and ', 'age=', ':age'> // name=:a and age=:age
These would be bound using the database backend.
Not sure if all DBs support this, though.
Regards,
Rodrigo Madera
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk