Re: [Cppcms-users] dbixx::result && dbixx::row
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-11-02 07:46:38
|
> Subject: [Cppcms-users] dbixx::result && dbixx::row > > Hello, is it possible to make dbixx:: result and row serializable? It would >let > us to store db queries results in cache. > > This is bad place to do serialization. As dbixx::result are tied to specific DB connection and not generally useful outside this scope. You need to fetch an object from the database you need using "row" and then serialize the object rather then serializing the row itself. See for example: Wikipp's options class: http://cppcms.svn.sourceforge.net/viewvc/cppcms/wikipp/branches/for_cppcms_v100/options.cpp?revision=1255&view=markup Function voidoptions::load(), lines 73-90 Artyom |