SQLite3 Phobos branch
Alex Khmara
alex.khmara at gmail.com
Mon Apr 25 04:59:24 PDT 2011
On Mon, 25 Apr 2011 12:16:19 +0300, Piotr Szturmaj <bncrbme at jadamspam.pl>
wrote:
> Alex Khmara wrote:
>> Second variant is a kind of ORM, and I think it will be too highlevel
>> for
>> many cases. But I understand that for web framework it's interesting
>> direction. As for standard D library, I would like to have something
>> more
>> generic and traditional. Probably, something modeled from Perl's DBI,
>> but
>> more D-like.
>
> Hi,
>
> Please take a look at https://github.com/pszturmaj/ddb
>
> I also plan to support SQLite3 and MySQL.
Thank you for posting link to your library.
I think we need to collect different ideas about useful and handy API,
and then try to work out D-style DB interface.
And it's very good that there is somebody who work with Postgres - but
for generic interface we will need to use minimal possibilities set,
present on all databases - or make some "layered" structure, like ranges
(by the way, SELECT result is a forward range by it's nature, so it would
be reasonable to make it conforming to Forward Range specification.
I am sure that there are many good design possibilities, and the more code
and
ideas we have from different developers, the more chances to work out great
"idiomatic D-style" DB layer. So if anyone else have DB related library in
D
(apart from those that listed in Wiki and posted in thet thread) - please
share
your vision.
More information about the Digitalmars-d
mailing list