std.database

Erik Smith via Digitalmars-d digitalmars-d at puremagic.com
Wed May 27 21:45:50 PDT 2015


> Shouldn't the statement be reusable?

Yes it should.  I added this use case:

auto stmt = con.statement("insert into table values(?,?)");
stmt.execute("a",1);
stmt.execute("b",2);
stmt.execute("c",3);

> Since one obvious use case would be running the behind a http 
> server - vibe.d - using fibers and using yield would seem nice 
> to have.

I think it's agnostic to fibers but I'm not sure.

> In any case it should do one thing, and do it well. All the 
> other fancy features like orms and auto-struct bindings should 
> be build ontop (maybe as separate libs)

Agree.


More information about the Digitalmars-d mailing list