On 12/9/19 6:02 AM, Martin Tschierschke wrote:

Is there a easy way to get the mysql row as an AA?
So that I can write something like result["email"] if "email" is a column?

ResultRange has an asAA member which does what you want.

I just saw this:
New: #188: Expose column names in Row struct via Row.getName(index). (@jpf91)
Should I use this? And just fill an AA myself?

I don't know why the asAA isn't in Row. I didn't actually realize the Row now had access to the column names.

-Steve
  • mysql-native v3.0.0:... Nick Sabalausky (Abscissa) via Digitalmars-d-announce
    • Re: mysql-nativ... Martin Tschierschke via Digitalmars-d-announce
      • Re: mysql-n... Steven Schveighoffer via Digitalmars-d-announce
        • Re: mys... Martin Tschierschke via Digitalmars-d-announce

Reply via email to