monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Typesafe VA_ARGS replacement for database::execute/


From: Christof Petig
Subject: Re: [Monotone-devel] Typesafe VA_ARGS replacement for database::execute/fetch
Date: Fri, 20 Jan 2006 00:26:19 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)

Vinzenz 'evilissimo' Feenstra schrieb:
> Hi,
> 
> I've attached the class query_args which can be used as VA_ARGS
> replacement for the methods database::execute and database::fetch
> 
> a possible signature of database::execute
>   void database::execute( query_args & args );
> 
> Thinkable usage will be something like this:    ( db is a object of
> database )
> db.execute( db.query("INSERT INTO TEST VALUES( ? , ? , ? , ? )") %
> value1 % value2 % value 3 % value 4);
>  
> Let me know what you're thinking about it.

I prefer your (or boosts) % syntax over my std::vector variant.
IIRC this relates to the sqlite3.binary branch, doesn't it?

   Christof

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]