std.database

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 3 09:03:58 PST 2016


On Thursday, 3 March 2016 at 15:53:28 UTC, Erik Smith wrote:
> auto r = db.connection().statement("select from t").range();  
> // nouns

db.execute("select from t").range();
`range` is probably ok.
Or
auto connection = db.createConnection();
connection.execute("select from t").range();

> auto r = db.getConnection().getStatement("select from 
> t").getRange();  // verbs

Getters must be actually nouns, but these are not getters, but 
factory methods: createConnection, createStatement, probably low 
level and/or private.


More information about the Digitalmars-d mailing list