MySQL Forums
Forum List  »  Connector/C++

Re: Connector 1.1.19 cpp
Posted by: Luis Silva
Date: January 28, 2020 06:28AM

Also, you can set connection properties at connect time:

sql::ConnectOptionsMap connection_properties;

connection_properties["hostName"] = "tcp://localhost/test";
connection_properties["userName"] = "user";
connection_properties["password"] = "password";
connection_properties["OPT_READ_TIMEOUT"] = 1000;

sql::Connection *conn = driver->connect(connection_properties);

Options: Reply• Quote


Subject
Views
Written By
Posted
1233
January 25, 2020 04:16AM
674
January 25, 2020 05:20AM
597
January 26, 2020 02:09AM
Re: Connector 1.1.19 cpp
608
January 28, 2020 06:28AM
599
January 28, 2020 10:50AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.