Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Connection::connect() interface is changing

From: <Yuantu.Huang(at)csiro.au>
Date: Fri Jul 13 2007 - 01:28:32 EDT


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@etr-usa.com] 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.

Do you need help?X

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.

...

-- 
MySQL++ Mailing List
For list archives: 
http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=lists@pantek.com
Received on Fri Jul 13 01:29:55 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 02 2007 - 01:56:48 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library