On 3 September 2013 17:20, Rodrigo Madera <[email protected]> wrote:
> Never mind...
>
> 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.

> Maybe if the documentation were a Wiki?

Please, feel encouraged to submit pull requests with patches
improving the documentation or simply report issue if anything is unclear
https://github.com/soci/soci

There is also Wiki at https://github.com/soci/soci/wiki
However, I'm personally not fan of Wiki-based documentation.
IMHO, Git-based patches are better as they are easier to maintain history
of docs and keep them consistent with versioned/current codebase.

But, feel free to use Wiki to incubate some examples, extend the FAQ,
use it as SOCI scratchpad, etc.
Later, such Wiki-based examples may become part of docs.

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