[std.database]
Johann MacDonagh
johann.macdonagh.no at spam.gmail.com
Tue Oct 11 14:00:39 PDT 2011
On 10/11/2011 1:57 AM, Piotr Szturmaj wrote:
> Johann MacDonagh wrote:
>> Maybe "Database" should be an abstract class rather than an interface?
>> That's how ADO.net does it:
>>
>> http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.aspx
>>
>
> Why "Database" instead of PGConnection, MySqlConnection,
> SQLiteConnection, etc. ? And of course base SqlConnection.
No, I agree. The base type should be DbConnection (I dunno,
SqlConnection is a little too specific, I like DbConnection better),
extended by PGConnection, MySqlConnection, SqliteConnection, etc...
More information about the Digitalmars-d
mailing list