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
662
January 25, 2020 04:16AM
410
January 25, 2020 05:20AM
306
January 26, 2020 02:09AM
Re: Connector 1.1.19 cpp
376
January 28, 2020 06:28AM
323
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.