digitalmars.D.learn - Convert ResultSet to List of Associted Array
- Jshah (6/6) Jul 30 2017 Hi
- Jshah (2/8) Jul 30 2017 I am using mysql-native
- Steven Schveighoffer (8/20) Aug 01 2017 Variant[string][] realresult;
- Steven Schveighoffer (3/24) Aug 01 2017 -Steve
- Jshah (3/27) Aug 01 2017 Thanks It is working
Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value], ....]
Jul 30 2017
On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote:Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value], ....]I am using mysql-native
Jul 30 2017
On 7/30/17 1:02 PM, Jshah wrote:On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote:Variant[string][] realresult; realresult.reserve(resultset.length); while(!resultset.empty) { realresult ~= resultset.asAA; } -SteveHi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value], ....]I am using mysql-native
Aug 01 2017
On 8/1/17 10:14 AM, Steven Schveighoffer wrote:On 7/30/17 1:02 PM, Jshah wrote:resultset.popFront(); // forgot this.On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote:Variant[string][] realresult; realresult.reserve(resultset.length); while(!resultset.empty) { realresult ~= resultset.asAA;Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value], ....]I am using mysql-native}-Steve
Aug 01 2017
On Tuesday, 1 August 2017 at 14:14:57 UTC, Steven Schveighoffer wrote:On 8/1/17 10:14 AM, Steven Schveighoffer wrote:Thanks It is workingOn 7/30/17 1:02 PM, Jshah wrote:resultset.popFront(); // forgot this.On Sunday, 30 July 2017 at 16:39:05 UTC, Jshah wrote:Variant[string][] realresult; realresult.reserve(resultset.length); while(!resultset.empty) { realresult ~= resultset.asAA;Hi I am new to D writing a web service with vibe. My webservice connect to mysql and return the result as JSON. How do I convert resultset to Array of Associated Array [["col1" : value, "col2" : value], ....]I am using mysql-native}-Steve
Aug 01 2017