View mode: basic / threaded / horizontal-split · Log in · Help
April 09, 2004
MySQL Binding for Linux
Hello,

i have make a MySQL Binding for Linux.
http://www.steinmole.de/d/

I have only run my little test program, so
the mysql.d binding must be more checked.

Es ist übrigens mein erstes Programm was ich veröffentliche.
Ich hab es unter die LPGL Lizenz gestellt.
Keine Ahnung ob das überhaupt erlaubt ist, soweit ich gehört
habe muss das unter die selbe Lizenz wie die MySQL Datenbank stehen.
Sei es drumm. 


Schöne Ostern.  
Manfred Hansen
April 09, 2004
Re: MySQL Binding for Linux
Manfred Hansen wrote:
> Hello,
> 
> i have make a MySQL Binding for Linux.
> http://www.steinmole.de/d/
> 

Manfred, great work !!  I tested it on my Gentoo box and it worked like 
a charm.

> I have only run my little test program, so
> the mysql.d binding must be more checked.
> 

I can see where we would want to wrap some more "D" functionality around 
things like:

row = mysql_fetch_row(result)

to make row[i] return char[] instead of being zero-terminated.


> Es ist übrigens mein erstes Programm was ich veröffentliche.
> Ich hab es unter die LPGL Lizenz gestellt.
> Keine Ahnung ob das überhaupt erlaubt ist, soweit ich gehört
> habe muss das unter die selbe Lizenz wie die MySQL Datenbank stehen.
> Sei es drumm. 
> 
> 
> Schöne Ostern.  
> Manfred Hansen
>
April 09, 2004
Re: MySQL Binding for Linux
Brad Anderson wrote:

> Manfred Hansen wrote:
>> Hello,
>> 
>> i have make a MySQL Binding for Linux.
>> http://www.steinmole.de/d/
>> 
> 
> Manfred, great work !!  I tested it on my Gentoo box and it worked like
> a charm.

Nice to hear that.

> 
>> I have only run my little test program, so
>> the mysql.d binding must be more checked.
>> 
> 
> I can see where we would want to wrap some more "D" functionality around
> things like:
> 
> row = mysql_fetch_row(result)
> 
> to make row[i] return char[] instead of being zero-terminated.
> 

Yes that is a good idea.

> 
>> Es ist übrigens mein erstes Programm was ich veröffentliche.
>> Ich hab es unter die LPGL Lizenz gestellt.
>> Keine Ahnung ob das überhaupt erlaubt ist, soweit ich gehört
>> habe muss das unter die selbe Lizenz wie die MySQL Datenbank stehen.
>> Sei es drumm.
>> 
>> 
>> Schöne Ostern.
>> Manfred Hansen
>>
April 09, 2004
Re: MySQL Binding for Linux
Manfred Hansen wrote:
> Hello,
> 
> i have make a MySQL Binding for Linux.
> http://www.steinmole.de/d/
> 
> I have only run my little test program, so
> the mysql.d binding must be more checked.
> 
> Es ist übrigens mein erstes Programm was ich veröffentliche.
> Ich hab es unter die LPGL Lizenz gestellt.
> Keine Ahnung ob das überhaupt erlaubt ist, soweit ich gehört
> habe muss das unter die selbe Lizenz wie die MySQL Datenbank stehen.
> Sei es drumm. 
> 
> 
> Schöne Ostern.  
> Manfred Hansen
> 

This looks great!

I added a link on the database page I started:
http://www.wikiservice.at/d/wiki.cgi?DatabaseBindings

-- 
Justin
http://jcc_7.tripod.com/d/
April 16, 2004
Re: MySQL Binding for Linux
"Manfred Hansen" <manfred@toppoint.de> wrote in message
news:c56i8l$2o7i$1@digitaldaemon.com...
> i have make a MySQL Binding for Linux.
> http://www.steinmole.de/d/

Great! I've added it to www.digitalmars.com/d/dlinks.html
April 21, 2004
Re: MySQL Binding for Linux
"Manfred Hansen" <manfred@toppoint.de> wrote in message
news:c56i8l$2o7i$1@digitaldaemon.com...
> Hello,
>
> i have make a MySQL Binding for Linux.
> http://www.steinmole.de/d/

I noticed that in this, you added mysql_fetch_hash.  I would suggest, for
the reason that PHP uses it, you use or alias mysql_fetch_assoc.

As well, you say "for linux" - what barriers are there to this working on
windows?

Thanks,
-[Unknown]
April 22, 2004
Re: MySQL Binding for Linux
Unknown W. Brackets wrote:

> "Manfred Hansen" <manfred@toppoint.de> wrote in message
> news:c56i8l$2o7i$1@digitaldaemon.com...
>> Hello,
>>
>> i have make a MySQL Binding for Linux.
>> http://www.steinmole.de/d/
> 
> I noticed that in this, you added mysql_fetch_hash.  I would suggest, for
> the reason that PHP uses it, you use or alias mysql_fetch_assoc.

Yes, i can do this, maybe we get anytimes an "dbi" or wrapper interface so
that there can use the name mysql_fetch_hash.

> 
> As well, you say "for linux" - what barriers are there to this working on
> windows?

I am not familiar with Windows, so i didn't try this.
The mysql library is compiled with Visual C++.
dmd -c mysql.d makes an Object File, but i can't 
linking the programm.

Please let me know if you sucsessfully linking the programm.


> 
> Thanks,
> -[Unknown]
April 22, 2004
Re: MySQL Binding for Linux
Manfred Hansen wrote:
> I am not familiar with Windows, so i didn't try this.
> The mysql library is compiled with Visual C++.
> dmd -c mysql.d makes an Object File, but i can't 
> linking the programm.
> 
> Please let me know if you sucsessfully linking the programm.

Thanks.  I've read that the problem here is that you cannot link in 
libraries compiled with anything but dmd/dmc.  My problem is I'm not 
sure where to start on compiling MySQL's lib with dmc.

Perhaps, however, this will be of some help to you.

-[Unknown]
Top | Discussion index | About this forum | D home