On 10/07/11 15:00, Piotr Szturmaj wrote:
Andrei Alexandrescu wrote:
On 10/7/11 12:02 PM, Piotr Szturmaj wrote:
Did you see http://pszturmaj.github.com/ddb/db.html ? It maps tuples,
structs and arrays in similar manner.

I did. Looks good. Why do you need DBRow? You could simply use
Variant[], the given struct, or Tuple directly.

Sure, that's a good idea. I used DBRow because I wanted generic
set/setNull for any of its base types, but it could be done with
function templates anyway...

The only thing that makes DBRow useful is opIndex access to Variant[]
fields, like row["field"].

Oh that makes sense, thanks.

Andrei

Reply via email to