[Libpqxx-general] transactor select results?

Remco Post remco at pipsworld.nl
Tue Dec 29 11:16:27 UTC 2009


Hi all,

I'm trying to get my head round the whole transactors concept. I've build a very simple transactor class that performs a query, now I need to be able to access the results of that query. Now, the docs says something about overloading the on_commit() member function. Now am I right in thinking that perform() still doesn't do anything with the value returned by on_commit()? How do I get the results of my query? Should I create a member function that eg. returns a reference to the (private) pqxx::result variable?

-- 

Met vriendelijke groeten,

Remco Post
remco at pipsworld.nl



More information about the Libpqxx-general mailing list