How it's better to store data from DB?
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Sep 5 03:00:26 PDT 2016
Usually I am storing daba from DB as array of structures.
Something like:
struct MyData
{
int id;
string name;
int age;
}
MyData mydata;
Then I am creating array of structures:
MyData [] mydatas;
And fill data in my code. Then append it to `mydatas` to get it
iterable.
But is it's good? Maybe there there is better way?
I need main -- be able iterate thru the data. Any other variants?
More information about the Digitalmars-d-learn
mailing list