www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - mysql-native v3.2.0 - the safe update

reply Steven Schveighoffer <schveiguy gmail.com> writes:
It's happened. I opened the PR over 2 years ago, and just got around to 
bringing it up to date in the last few days.

This is a huge huge update. I've never done anything like this before, 
but I think it works as a drop-in replacement, while allowing you to 
migrate any piece you wish from unsafe code to safe code. Please let me 
know if there are *any* problems you find with this.

See the [safe migration 
doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md) 
for more details.

Note this does *not* build with dip1000, because the two underlying 
libraries (Phobos sockets and vibe.d) do not build as safe with dip1000.

-Steve
Apr 22 2022
next sibling parent M.M. <matus email.cz> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Looks like a great effort! Well done.
Apr 25 2022
prev sibling next sibling parent reply bauss <jj_1337 live.dk> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
I owe you a beer, I can't tell you how long I've been waiting for this and it makes me really happy!
Apr 26 2022
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 4/26/22 4:40 AM, bauss wrote:
 
 I owe you a beer, I can't tell you how long I've been waiting for this 
 and it makes me really happy!
Thanks! If you want to join me for beerconf this weekend, I'll drink a beer on your behalf ;) I'm super happy to get this in, it was blocking a bunch of things for me too. I'm going to probably spend the next few weeks migrating all my vibe.d project code to be safe as much as possible. -Steve
Apr 26 2022
prev sibling next sibling parent reply Andrea Fontana <nospam example.com> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.
Well done Steven!
 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.
Dip1000 is marked as "superseded". I don't understand what the plan is. Andrea
Apr 27 2022
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 4/27/22 6:15 AM, Andrea Fontana wrote:
 On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer wrote:
 Note this does *not* build with dip1000, because the two underlying 
 libraries (Phobos sockets and vibe.d) do not build as safe with dip1000.
Dip1000 is marked as "superseded". I don't understand what the plan is.
It's superseded by the implementation. Which means there's not really any description of what it represents. However, there is a -dip1000 switch, and my point was that mysql-native in safe mode won't compile with it because there are no valid socket implementations for it. I have a PR into phobos to fix it: https://github.com/dlang/phobos/pull/8438 I'm not sure how vibe can be fixed, I haven't spent much time looking at it. -Steve
Apr 27 2022
prev sibling next sibling parent surlymoor <surlymoor cock.li> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Awesome, thank you!
May 05 2022
prev sibling next sibling parent zoujiaqing <zoujiaqing gmail.com> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Thank you! I'll give it a try.
May 07 2022
prev sibling parent reply Rey Valeza <KARITOY gmail.com> writes:
On Saturday, 23 April 2022 at 05:12:30 UTC, Steven Schveighoffer 
wrote:
 It's happened. I opened the PR over 2 years ago, and just got 
 around to bringing it up to date in the last few days.

 This is a huge huge update. I've never done anything like this 
 before, but I think it works as a drop-in replacement, while 
 allowing you to migrate any piece you wish from unsafe code to 
 safe code. Please let me know if there are *any* problems you 
 find with this.

 See the [safe migration 
 doc](https://github.com/mysql-d/mysql-native/blob/master/SAFE_MIGRATION.md)
for more details.

 Note this does *not* build with dip1000, because the two 
 underlying libraries (Phobos sockets and vibe.d) do not build 
 as safe with dip1000.

 -Steve
Hi Steve, I just want you to know that I updated the Vibe.d tutorial I wrote last year to emphasize database operations using mysql-native and is now viewable here: https://reyvaleza.gitbook.io/vibe.d-tutorial/ Thanks!
Feb 14 2023
next sibling parent Steven Schveighoffer <schveiguy gmail.com> writes:
On 2/14/23 9:22 AM, Rey Valeza wrote:

 Hi Steve, I just want you to know that I updated the Vibe.d tutorial I 
 wrote last year to emphasize database operations using mysql-native and 
 is now viewable here:
 
 https://reyvaleza.gitbook.io/vibe.d-tutorial/
Nice! I see that you just import `mysql`. Have you tried with `mysql.safe`? I'm curious if it works, it should mostly just work. -Steve
Feb 18 2023
prev sibling parent aj <joshiamit295 gmail.com> writes:
On Tuesday, 14 February 2023 at 14:22:42 UTC, Rey Valeza wrote:
 On Saturday, 23 April 2022 at 05:12:30 UTC, Steven 
 Schveighoffer wrote:
 [...]
Hi Steve, I just want you to know that I updated the Vibe.d tutorial I wrote last year to emphasize database operations using mysql-native and is now viewable here: https://reyvaleza.gitbook.io/vibe.d-tutorial/ Thanks!
your tutorial on vibe.d help me lot, I got error, after hours of try not able to remove, but with the help of your tutorial, finally I remove it. Thanks
Dec 14 2023