SQLite3 Phobos branch
Alex Khmara
alex.khmara at gmail.com
Mon Apr 25 09:28:50 PDT 2011
On Mon, 25 Apr 2011 15:26:44 +0300, Piotr Szturmaj <bncrbme at jadamspam.pl>
wrote:
> In my Postgres implementation SELECT result is an Input Range, since
> Forward Range implies position saving and that's possible only with
> cursors.
>
> I think we could loosely follow .NET approach where each client has
> separate class with its own capabilities. On top of that there's a
> wrapper which abstracts all clients to one minimal api set. Actually
> strictly speaking it's under that rather than on top, I mean polymorphic
> DBConnection and its descendands. I think such an approach may be good
> to consider.
>
> Class hierarchy could then look like this:
>
> DBConnection
> |
> \
> SqliteConnection
> MySqlConnection
> PostgresConnection
Sorry. Of course, I meant Input Range. My error.
As for hierarchy - I don't know, may be DBConnection will become just
interface - it seems that there is little common code between different
database
clients hat can be moved into common ancestor.
More information about the Digitalmars-d
mailing list