Mysql query result access by field name

ipkwena ipkwena at
Sun May 20 16:08:03 UTC 2018

I have started learning D and I am enjoying it so far.

How does one access the columns fields in a Mysql query results 
by the column name. Currently I have to use the method as shown 
in a couple of example by indexing array values (f being a struct 
Data f; = to!string(allrows[0][0]);
f.surname = to!string(allrows[0][1]);
f.title  = to!string(allrows[0][2]);

I am using the mysql-native package or DB connectivity.


More information about the Digitalmars-d-learn mailing list