question on dub and postgresql

Denis Feklushkin feklushkin.denis at gmail.com
Mon Oct 5 15:27:41 UTC 2020


On Monday, 5 October 2020 at 15:08:54 UTC, Alaindevos wrote:
> On Monday, 5 October 2020 at 14:57:53 UTC, Alaindevos wrote:
>> answer[0][0].as!PGtext contains good data
> I found an answer.
>>
> foreach(rownumber; answer.length.iota){
> auto arow=answer[rownumber];
> writeln(arow);
> }
>>
> Yet it would be nice to know why i can't iterate directly over 
> answer using foreach.

Use "rangify" template to get forward range from answer


More information about the Digitalmars-d-learn mailing list