[std.database]

Adam Ruppe destructionator at gmail.com
Tue Oct 11 14:46:55 PDT 2011


Andrei Alexandrescu wrote:
> The database engine should be codified in the connection string, 
> not in the type name. 

Why?

If it's in the type, you can trivially specialize for different
engines and get static checking for functions not supported
across them all, or runtime checking if you prefer.

You can also change the constructors to make it clear what
is being created.


More information about the Digitalmars-d mailing list