You can download the MySql Driver for the programming language D.

What's New:

Update the mysql_binding to compile with dmd 2.009 and gdc 0.24 configured with --d-language-version=2
For dmd 1.x, use this Version.
Tested the MySQL Driver with MySql 4.0.x, 4.1.x,5.0.x .

To work with the mysql_binding under Windows, change extern(C) to extern(Windows),
then use the new coffimplib tool to create an OMF .lib for the libmySQL.dll file.
Ignore the libmyclient.lib completely.

I have added 2 function mysql_fetch_array and mysql_fetch_assoc.
It's little bit more convenience, you can make foreach over the values.
The hash example:

string[string] hash;
while ((hash = mysql_fetch_assoc(result)) != null) { 
	foreach ( string key; hash.keys.sort ){ 
		writefln("%s = %s",key,hash[key]); 
	} 
}
The array example:

string[] values;
while ( (values = mysql_fetch_array(result)) != null) {
	foreach (string wert; values) {
		writefln("wert = %s",wert);
	}
}
		
For questions or comments feel free to send me an email.
Manfred Hansen

Es gibt jetzt ein Deutschsprachiges Forum fuer D.

Beispiele im Buch mit dmd 2.0.40 kompiliert und somit mit der neuen Umgebung druntime.
Letzter Update am 25.02.2010
d_buch
Programmbeispiele koenen von hier heruntergeladen werden.
Wenn sich jemand berufen fuehlt ein neues Kapitel dem Buch hinzuzufuegen, dann bitte mit
mir Kontakt aufnehmen.


D library

I have ported the header files from libsqlora8 to connect the oracle database.
Tested with oracle-xe_10.2.
You can download the Oracle driver from here.