List:MySQL++« Previous MessageNext Message »
From:<Yuantu.Huang Date:July 13 2007 5:28am
Subject:RE: Connection::connect() interface is changing
View as plain text  
Hi Warren,

It would be good to keep the old Connection when you add new one. I am
happy with the old one. Maybe using std::string instead of cchar* makes
the code more C++ way.
  
By the way, thank you for your hard work on SSQLS and BLOB. I tested
v2.3.2 and they are working perfectly.

Yuantu

-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped] 
Sent: Friday, 13 July 2007 1:21 PM
To: MySQL++ Mailing List
Subject: Connection::connect() interface is changing

I have started work on MySQL++ v3.0.

My task at the moment is cleaning up the connection establishment 
interface.  I have something I like, but I thought I'd run it past the 
list just in case.

The first thing is that we're dropping the parameters for turning on 
compression and setting the connection timeout.  You can set those 
through Connection::set_option() instead.

The parameters for the communication channel are a mess.  In v2 there 
are three of them, you can't use all of them at once, and together they 
select among at least four different types of IPC.  (See the 
mysql_real_connect() docs if you disbelieve!)  I've pushed this 
complexity out of the interface and into the implementation of 
Connection; there's now just one string parameter for all of this, with 
a bit of clever parsing within the class to figure out what you mean.

None of that should cause problems.

...
Thread
Connection::connect() interface is changingWarren Young13 Jul
  • Re: Connection::connect() interface is changingDrew M.13 Jul
    • Re: Connection::connect() interface is changingWarren Young13 Jul
  • RE: Connection::connect() interface is changingYuantu.Huang13 Jul
    • Re: Connection::connect() interface is changingWarren Young13 Jul
      • RE: Connection::connect() interface is changingJoel Fielder13 Jul
        • RE: Connection::connect() interface is changingWilliam F. Dowling13 Jul
        • Re: Connection::connect() interface is changingWarren Young14 Jul
          • Re: Connection::connect() interface is changingWarren Young14 Jul
            • Re: Connection::connect() interface is changingAlex Burton15 Jul
              • Re: Connection::connect() interface is changingPeter Garner15 Jul
              • Re: Connection::connect() interface is changingWarren Young16 Jul
          • RE: Connection::connect() interface is changingJoel Fielder16 Jul
            • Re: Connection::connect() interface is changingWarren Young16 Jul
              • Re: Connection::connect() interface is changingAxel Howind16 Jul
                • Re: Connection::connect() interface is changingWarren Young16 Jul
  • Re: Connection::connect() interface is changingAxel Howind13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul
      • Re: Connection::connect() interface is changingAxel Howind16 Jul
  • Re: Connection::connect() interface is changingAlex Burton13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul
  • RE: Connection::connect() interface is changingJim Wallace13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul