View mode: basic / threaded / horizontal-split · Log in · Help
July 08, 2004
Database access
I've seen the graphical interfaces available for D.
Thank you for the tip.
How about database access.
It would be nice to have that. Is that possible?
Are there any docs about it?
If yes, then for what database?
I'm new to D(comming from Java and C#), but I have to access databases.

Adi
July 08, 2004
Re: Database access
I haven't used it, but there appears to be a MySQL binding for Linux:

http://www.steinmole.de/d/

If you're on Windows, you could try interfacing via COM.  In my (very
limited) experience, I'm thinking it's easiest to write a simple C wrapper
and interface that into D, rather than accessing COM directly from D.  In
this way you don't have to bother with translating all the C .h files into D
modules; just write a C abstraction layer and translate that.

Of course, you said you're coming from Java and C#, neither of which produce
libs or object files that can be linked with D...

-david

"adi" <adi_member@pathlink.com> wrote in message
news:ccihfp$3am$1@digitaldaemon.com...
> I've seen the graphical interfaces available for D.
> Thank you for the tip.
> How about database access.
> It would be nice to have that. Is that possible?
> Are there any docs about it?
> If yes, then for what database?
> I'm new to D(comming from Java and C#), but I have to access databases.
>
> Adi
July 08, 2004
Re: Database access
Thank yout for now.
I will keep on looking


In article <ccilhm$9fk$1@digitaldaemon.com>, David Barrett says...
>
>I haven't used it, but there appears to be a MySQL binding for Linux:
>
>http://www.steinmole.de/d/
>
>If you're on Windows, you could try interfacing via COM.  In my (very
>limited) experience, I'm thinking it's easiest to write a simple C wrapper
>and interface that into D, rather than accessing COM directly from D.  In
>this way you don't have to bother with translating all the C .h files into D
>modules; just write a C abstraction layer and translate that.
>
>Of course, you said you're coming from Java and C#, neither of which produce
>libs or object files that can be linked with D...
>
>-david
>
>"adi" <adi_member@pathlink.com> wrote in message
>news:ccihfp$3am$1@digitaldaemon.com...
>> I've seen the graphical interfaces available for D.
>> Thank you for the tip.
>> How about database access.
>> It would be nice to have that. Is that possible?
>> Are there any docs about it?
>> If yes, then for what database?
>> I'm new to D(comming from Java and C#), but I have to access databases.
>>
>> Adi
>
>

Adi
July 08, 2004
Re: Database access
adi wrote:

> I've seen the graphical interfaces available for D.
> Thank you for the tip.
> How about database access.
> It would be nice to have that. Is that possible?
> Are there any docs about it?
> If yes, then for what database?
> I'm new to D(comming from Java and C#), but I have to access databases.
> 
> Adi

Some guy made a wrapper class for SQLite, is that good enough? If not 
then you can convert the MySQL C library or C++ library over to D.
July 18, 2004
Re: Database access
adi wrote:
> I've seen the graphical interfaces available for D.
> Thank you for the tip.
> How about database access.
> It would be nice to have that. Is that possible?
> Are there any docs about it?
> If yes, then for what database?
> I'm new to D(comming from Java and C#), but I have to access databases.
> 
> Adi

There's a wiki page that lists some database bindings that have been 
created for D:

http://www.prowiki.org/wiki4d/wiki.cgi?DatabaseBindings

-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
Top | Discussion index | About this forum | D home