www.digitalmars.com         C & C++   DMDScript  

D - MySQL Binding for Linux

reply Manfred Hansen <manfred toppoint.de> writes:
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
Apr 09 2004
next sibling parent reply Brad Anderson <brad dsource.dot.org> writes:
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
 

Apr 09 2004
parent Manfred Hansen <manfred toppoint.de> writes:
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


Apr 09 2004
prev sibling next sibling parent J C Calvarese <jcc7 cox.net> writes:
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/
Apr 09 2004
prev sibling next sibling parent "Walter" <walter digitalmars.com> writes:
"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
Apr 15 2004
prev sibling parent reply "Unknown W. Brackets" <unknown simplemachines.org> writes:
"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]
Apr 21 2004
parent reply Manfred Hansen <manfred toppoint.de> writes:
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]

Apr 22 2004
parent "Unknown W. Brackets" <unknown at.simplemachines.dot.org> writes:
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]
Apr 22 2004