Database interface design - was how to build up the library.
Piotr Szturmaj
bncrbme at jadamspam.pl
Fri Oct 7 13:00:41 PDT 2011
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"].
More information about the Digitalmars-d
mailing list