[odb-users] Declaring db connection in reading query

Nicholas Cremonesi nicholas.cremonesi at gmail.com
Mon Mar 9 05:51:26 EDT 2015


Hello everyone,

I'm trying to execute queries on an already populated database. If I
declare the db connection like this "auto_ptr<database> db (create_database
(argc, argv));" I notice that, executing the query, the target table is
cleared.

How can I declare the connection properly?


More information about the odb-users mailing list