mysql-native: Seamlessly supports Phobos-only sockets

2013-05-16 Thread Nick Sabalausky
For those who aren't aware: mysql-native (aka "mysqln") is a native-D MySQL client library that has zero dependencies on the official MySQL client lib or any other [L]GPL software. It was originally created by Steve Teale, but various other people have since been maintaining it. Originally it used

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-20 Thread Nick Sabalausky
On Fri, 17 May 2013 02:08:05 -0400 Nick Sabalausky wrote: > > If you want to use Phobos sockets, you can do it two ways: > > 1. Pass -version=MySQLN_NoVibeD to the compiler. This will completely > eliminate all dependencies on Vibe.d (and remove all Vibe.d > capabilities, naturally) and automati

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-20 Thread Gary Willoughby
Since it makes a lot more sense for the default to be *no* external dependencies, I've flipped it around: That's great thanks for your work on this.

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-21 Thread Gary Willoughby
One question, is there any plans to add transaction support?

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-21 Thread Gary Willoughby
On Tuesday, 21 May 2013 at 09:19:04 UTC, Gary Willoughby wrote: One question, is there any plans to add transaction support? Actually this is a dumb idea, i can just send the SQL myself.

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-21 Thread Nick Sabalausky
On Tue, 21 May 2013 11:21:51 +0200 "Gary Willoughby" wrote: > On Tuesday, 21 May 2013 at 09:19:04 UTC, Gary Willoughby wrote: > > One question, is there any plans to add transaction support? > > Actually this is a dumb idea, i can just send the SQL myself. D is freaking awesome for that though:

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-21 Thread Dicebot
On Tuesday, 21 May 2013 at 10:12:41 UTC, Nick Sabalausky wrote: // Psuedocode START TRANSACTION; scope(fail) ROLLBACK; scope(exit) COMMIT; Nice :) You may have meant "scope(success) COMMIT;", scope(exit) is executed on both failure and success.

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-22 Thread Nick Sabalausky
On Tue, 21 May 2013 12:16:43 +0200 "Dicebot" wrote: > On Tuesday, 21 May 2013 at 10:12:41 UTC, Nick Sabalausky wrote: > > // Psuedocode > > START TRANSACTION; > > scope(fail) ROLLBACK; > > scope(exit) COMMIT; > > > > Nice :) > > You may have meant "scope(success) COMMIT;", scope(exit) is > exec

Re: mysql-native: Seamlessly supports Phobos-only sockets

2013-05-29 Thread Gary Willoughby
I've found a couple more 'bugs'. Well warnings really but should be addressed. In connection.d: lines 2022-2023 should be: @property ParamDescription[] paramDescriptions() { return _paramDescriptions; } @property FieldDescription[] fieldDescriptions() { return _colDescriptions; } i.e. miss