On Friday, 4 March 2016 at 18:42:45 UTC, Erik Smith wrote:
    auto db = createDatabase("file:///testdb");
auto rowSet = db.connection().statement("select name,score from score").execute;
    foreach (r; rowSet) writeln(r[0].as!string,",",r[1].as!int);

You'll want to have some types in there. As in

struct S
{
  string name;
  int age;
}

auto rowSet = db.connection().statement("select name,score from score").executeAs!S;
foreach (r; rowSet) writeln(r.name,",",r.age);

Reply via email to