Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Initialize pointer to connection (no replies)

$
0
0
I create a pointer to a connection like in the examples:

sql::Connection *con;

Now, I would like to initialize this connection, but not with sql::driver::connect(), because I may not be able to create a connection immediately before my program tries to use the pointer.

I see some use mysql_init(null), but I am using statically linked libraries and cannot see this available. Do I have any options?

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>