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: ReplyQuote


Subject
Views
Written By
Posted
378
January 25, 2020 04:16AM
185
January 25, 2020 05:20AM
166
January 26, 2020 02:09AM
Re: Connector 1.1.19 cpp
204
January 28, 2020 06:28AM
185
January 28, 2020 10:50AM


Sorry, you can't reply to this topic. It has been closed.

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.