Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 22:59:38 UTC, Nick Sabalausky wrote: On 02/02/2017 09:46 AM, Suliman wrote: Could you explain real case if rangification of ResultSet http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html Does it's mean that I can write

Re: mysql-native: preview2

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 09:46 AM, Suliman wrote: Could you explain real case if rangification of ResultSet http://semitwist.com/mysql-native-docs/v0.2.0-preview1/mysql/result/ResultSet.html Does it's mean that I can write foreach(x;result.empty) ? Or how to use it? .empty just checks whether the

Re: mysql-native: preview2

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 02:22 AM, Suliman wrote: > Am I right understand that if I use pool I can create connection > instance one time in DB class constructor end every new connection > will be created on demand? No. You create the pool once (wherever/whenever you want to). Then, every time you want to

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 04:33 AM, Suliman wrote: ResultSet querySet(Connection conn, string sql, ColumnSpecialization[] csa = null) Could you explain last parameter? `ColumnSpecialization[] csa = null`. I can't understand how to use it. The vast majority of the time, you don't need to worry about

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 03:23 AM, Suliman wrote: mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is

Re: vibe.d 0.8.0 and 0.7.31 beta releases

2017-02-02 Thread Sönke Ludwig via Digitalmars-d-announce
0.8.0-beta.2 and 0.7.31-beta.2 have been tagged now and fix the issues found so far.

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 07:10 AM, aberba wrote: * Moreover, how do I close a connection or does it auto close? It closes in its destructor (although AIUI there are times when dtors don't get run). But it can be closed manually with Connection.close(); * Does it support mysql_real_escape_string()

Re: mysql-native: preview2

2017-02-02 Thread Chris Wright via Digitalmars-d-announce
On Thu, 02 Feb 2017 06:50:34 +, Suliman wrote: > On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: >> Made a couple more long-needed changes while I'm at it: >> >> https://github.com/Abscissa/mysql-native-experimental Tag: >> v0.2.0-preview2 >> >> - For better clarity,

Re: mysql-native: preview2

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 14:08:19 UTC, Steven Schveighoffer wrote: On 2/2/17 1:50 AM, Suliman wrote: On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: Made a couple more long-needed changes while I'm at it: https://github.com/Abscissa/mysql-native-experimental Tag:

Re: mysql-native: preview2

2017-02-02 Thread Steven Schveighoffer via Digitalmars-d-announce
On 2/2/17 1:50 AM, Suliman wrote: On Thursday, 2 February 2017 at 05:28:10 UTC, Nick Sabalausky wrote: Made a couple more long-needed changes while I'm at it: https://github.com/Abscissa/mysql-native-experimental Tag: v0.2.0-preview2 - For better clarity, renamed `mysql.db.MysqlDB` to

Re: mysql-native: API Refresh RC

2017-02-02 Thread aberba via Digitalmars-d-announce
On Thursday, 2 February 2017 at 08:38:32 UTC, Nick Sabalausky wrote: On 02/02/2017 03:23 AM, Suliman wrote: [...] But it does not. I am getting Access Violation instead of the exception if connection credentials is wrong: Authentication failure: Access denied for user

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Rory McGuire via Digitalmars-d-announce
On Thu, Feb 2, 2017 at 1:29 PM, Dicebot via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Wednesday, 1 February 2017 at 18:32:48 UTC, Rory McGuire wrote: > >> I use arch and D every day. I'm willing to volunteer. I keep up to date >> with all releases and keep

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Dicebot via Digitalmars-d-announce
On Thursday, 2 February 2017 at 10:01:04 UTC, qznc wrote: In another thread [0] Snap packages are discussed. What is the view of Arch? If Snap wins, there would be only one package to maintain for all distros. [0] https://forum.dlang.org/post/mzklrdgeyymuwmtqz...@forum.dlang.org There is

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Dicebot via Digitalmars-d-announce
On Wednesday, 1 February 2017 at 18:32:48 UTC, Rory McGuire wrote: I use arch and D every day. I'm willing to volunteer. I keep up to date with all releases and keep multiple dmd versions. If I'm maintaining the packages I'd use them (if I can still switch versions of dmd). Are you familiar

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread Daniel Kozak via Digitalmars-d-announce
I belive arch would prefer flatpak ;) Dne 2. 2. 2017 11:06 AM napsal uživatel "qznc via Digitalmars-d-announce" < digitalmars-d-announce@puremagic.com>: > On Wednesday, 1 February 2017 at 12:47:51 UTC, Dicebot wrote: > >> As I have previously announced (http://forum.dlang.org/post/o >>

Re: Call for arms: Arch Linux D package maintenance

2017-02-02 Thread qznc via Digitalmars-d-announce
On Wednesday, 1 February 2017 at 12:47:51 UTC, Dicebot wrote: As I have previously announced (http://forum.dlang.org/post/o6fbbu$1qli$1...@digitalmars.com), I am stepping down from maintaining Arch Linux packages for D. That means there are 3 possibilities: - No one will adopt them and all

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
ResultSet querySet(Connection conn, string sql, ColumnSpecialization[] csa = null) Could you explain last parameter? `ColumnSpecialization[] csa = null`. I can't understand how to use it. Could you give me your skype? Also I think it's better to remove old deprecated methods at all,

Re: mysql-native: API Refresh RC

2017-02-02 Thread Nick Sabalausky via Digitalmars-d-announce
On 02/02/2017 03:23 AM, Suliman wrote: mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
On Thursday, 2 February 2017 at 04:04:15 UTC, Nick Sabalausky wrote: On 02/01/2017 01:54 PM, Suliman wrote: Also I can't understand what is SQL Command and what exec is doing if it's returning ulong? "struct Command" should not be used. It is old, and a bad design. This new release

Re: mysql-native: API Refresh RC

2017-02-02 Thread Suliman via Digitalmars-d-announce
mydb.lockConnection() does create a new connection if it needs to. And that WILL throw an exception if there's a problem connecting to the DB server. So your code above WILL catch an exception if the connection information (server address/port/login/etc) is wrong. But it does not. I am