On 3 September 2013 17:50, Mateusz Loskot <[email protected]> wrote:
> On 3 September 2013 17:20, Rodrigo Madera <[email protected]> wrote:
>>
>> I started playing with the internals and debugging for fun, and I saw
>> a (undocumented?) method that gives me just what I need:
>>
>> ...
>> for (auto itr = rowset.begin(); itr != rowset.end(); ++itr) {
>>         const soci::row& row = *itr;
>>
>>         for (size_t i=0; i<row.size(); ++i) {
>>                 const soci::column_properties& properties =
>> row.get_properties(i);
>>                 const auto& indicator = row.get_indicator(i);
>> ...
>>
>> If this were documented, it could help others!
>
> Rodrigo,
>
> This method is implemented in the API reference:
> http://soci.sourceforge.net/doc/3.2/reference.html
>
> I agree, it could have been more visible and actually used in the examples.

Test case as an example + a tiny update in docs
https://github.com/SOCI/soci/commit/d9808ee5bf758f707a5b99c417871c5390d15b1b

Best regards,
-- 
Mateusz  Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to