mysql binding/wrapper?

2012-04-28 Thread simendsjo
I guess there are several bindings lingering around. Has anyone experience with any of these? I found the following: https://github.com/britseye/mysqln https://github.com/britseye/mysqld https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/mysql.d http:

Re: mysql binding/wrapper?

2012-04-28 Thread Adam D. Ruppe
On Saturday, 28 April 2012 at 15:30:13 UTC, simendsjo wrote: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/mysql.d That's mine. I use it all the time; nothing super fancy, but it gets the job done for me. I didn't really document it... but the

Re: mysql binding/wrapper?

2012-04-28 Thread simendsjo
On Sat, 28 Apr 2012 17:54:49 +0200, Adam D. Ruppe wrote: On Saturday, 28 April 2012 at 15:30:13 UTC, simendsjo wrote: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/mysql.d That's mine. I use it all the time; nothing super fancy, but it gets

Re: mysql binding/wrapper?

2012-04-28 Thread Adam D. Ruppe
On Saturday, 28 April 2012 at 16:19:37 UTC, simendsjo wrote: As it resides in this big misc repository, does it have many dependecies? It depends on the database.d module in there too. (database.d provides the base interface and some common functions with other db providers.) That's it though,

Re: mysql binding/wrapper?

2012-04-29 Thread dnewbie
On Saturday, 28 April 2012 at 15:30:13 UTC, simendsjo wrote: stuff/blob/master/mysql.d http://my.opera.com/run3/blog/2012/03/13/d-mysql I use it in a bank account application. It works.

Re: mysql binding/wrapper?

2012-04-30 Thread Steven Schveighoffer
On Sat, 28 Apr 2012 13:42:41 -0400, Adam D. Ruppe wrote: On Saturday, 28 April 2012 at 16:19:37 UTC, simendsjo wrote: Would you mind if the module was added to vibe, and thus relicensed to MIT? No idea if the vibe folks would actually want that though :) My stuff is all free to take as fa

Re: mysql binding/wrapper?

2012-04-30 Thread simendsjo
On Mon, 30 Apr 2012 16:08:34 +0200, Steven Schveighoffer wrote: On Sat, 28 Apr 2012 13:42:41 -0400, Adam D. Ruppe wrote: On Saturday, 28 April 2012 at 16:19:37 UTC, simendsjo wrote: Would you mind if the module was added to vibe, and thus relicensed to MIT? No idea if the vibe folks wo

Re: mysql binding/wrapper?

2012-04-30 Thread James Oliphant
On Mon, 30 Apr 2012 16:18:16 +0200, simendsjo wrote: > On Mon, 30 Apr 2012 16:08:34 +0200, Steven Schveighoffer > wrote: > >> On Sat, 28 Apr 2012 13:42:41 -0400, Adam D. Ruppe >> wrote: >> >>> On Saturday, 28 April 2012 at 16:19:37 UTC, simendsjo wrote: Would you mind if the module was add

Re: mysql binding/wrapper?

2012-04-30 Thread simendsjo
On Mon, 30 Apr 2012 18:19:29 +0200, James Oliphant wrote: Actually, it looks like the vibe folks are using my fork of Steve Teales mysqln. I had hoped to contact Steve first, so that these changes existed in one place. https://github.com/JollieRoger All of the changes exist in individual bran

Re: mysql binding/wrapper?

2012-04-30 Thread James Oliphant
On Mon, 30 Apr 2012 18:57:57 +0200, simendsjo wrote: > Yes, your patches has been merged. Of course it would be best to have > everything database complete already, but I'm glad it's been merged > as-is for now - it might take a long time (and has already) before a > generic database interface is

Re: mysql binding/wrapper?

2012-04-30 Thread Ary Manzana
On 4/30/12 11:57 PM, simendsjo wrote: On 4/29/12 11:48 PM, dnewbie wrote: On Saturday, 28 April 2012 at 15:30:13 UTC, simendsjo wrote: stuff/blob/master/mysql.d http://my.opera.com/run3/blog/2012/03/13/d-mysql I use it in a bank account application. It works. On Mon, 30 Apr 2012 18:19:29 +0

Re: mysql binding/wrapper?

2012-04-30 Thread simendsjo
On Mon, 30 Apr 2012 20:53:02 +0200, James Oliphant wrote: On Mon, 30 Apr 2012 18:57:57 +0200, simendsjo wrote: Yes, your patches has been merged. Of course it would be best to have everything database complete already, but I'm glad it's been merged as-is for now - it might take a long time

Re: mysql binding/wrapper?

2012-04-30 Thread simendsjo
On Mon, 30 Apr 2012 20:55:45 +0200, Ary Manzana wrote: Looking at the code of mysql.d I see a big switch with many cases like "case 0x01: // TINYINT". But then there's the SQLType enum with those constants. Why the enum values are not used in the cases? (and also in other parts of the co

Re: mysql binding/wrapper?

2012-05-01 Thread SomeDude
On Saturday, 28 April 2012 at 17:42:42 UTC, Adam D. Ruppe wrote: On Saturday, 28 April 2012 at 16:19:37 UTC, simendsjo wrote: As it resides in this big misc repository, does it have many dependecies? It depends on the database.d module in there too. (database.d provides the base interface and

Frustration [Was: mysql binding/wrapper?]

2012-04-30 Thread Ary Manzana
On 5/1/12 2:44 AM, simendsjo wrote: On Mon, 30 Apr 2012 20:55:45 +0200, Ary Manzana wrote: Looking at the code of mysql.d I see a big switch with many cases like "case 0x01: // TINYINT". But then there's the SQLType enum with those constants. Why the enum values are not used in the cases? (and

Re: Frustration [Was: mysql binding/wrapper?]

2012-05-01 Thread simendsjo
On Tue, 01 May 2012 04:04:01 +0200, Ary Manzana wrote: It's sad. I always want to give D a chance. And when I do I always bump into errors and inconveniences. (...) Every time I want to start coding in D, or helping some project, I stumble into all kind of troubles. I have the same feelin

Re: Frustration [Was: mysql binding/wrapper?]

2012-05-01 Thread SomeDude
On Tuesday, 1 May 2012 at 02:04:03 UTC, Ary Manzana wrote: On 5/1/12 2:44 AM, simendsjo wrote: On Mon, 30 Apr 2012 20:55:45 +0200, Ary Manzana wrote: Looking at the code of mysql.d I see a big switch with many cases like "case 0x01: // TINYINT". But then there's the SQLType enum with those c

Re: Frustration [Was: mysql binding/wrapper?]

2012-05-01 Thread SomeDude
On Tuesday, 1 May 2012 at 08:40:27 UTC, SomeDude wrote: On Tuesday, 1 May 2012 at 02:04:03 UTC, Ary Manzana wrote: On 5/1/12 2:44 AM, simendsjo wrote: On Mon, 30 Apr 2012 20:55:45 +0200, Ary Manzana wrote: Looking at the code of mysql.d I see a big switch with many cases like "case 0x01: //

Re: Frustration [Was: mysql binding/wrapper?]

2012-05-10 Thread #coder
As for mysqln, I merged jrogers patches and changed uint to size_t so it compiles on x64. You can look at it here: https://github.com/simendsjo/mysqln/tree/compile-on-recent-dmd It hasn't been tested beyond connecting to the database and fetching metadata yet. And my repository will go away ve