Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Connection::connect() interface is changing

From: Alex Burton <alexibu(at)mac.com>
Date: Fri Jul 13 2007 - 04:21:05 EDT


Warren,

I think the rearrangement of parameters is unnecessary and doesn't make sense.
server
database
user
password
would make sense, but any way it's not worth changing in my opinion.

I think that in most peoples code there would only be one line of code constructing a Connection.
If you were changing something that people used all the time then maybe it would be worth doing, but this is not.

Maybe a struct to contain all the connection parameters would be better. Connection::Connection(const ConnectionSettings & cs) This is the sort of thing I do in my code where it wraps mysqlpp::Connection.

Alex

-- 
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 04:21:26 2007

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


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