Understandable.

What I'm looking to do is save as much data about the STH as possible. MySQL returns the number of rows that it found, Oracle doesn't. That makes me question whether or not there is a simple way to figure out what methods are available in every DBD type and how to save them to a file.

Because this implementation is very simple, it doesn't strike me as something that's difficult to incorporate as some sort of extension to DBI or DBD or whatever.

At the very least, a person, no matter what database driver they are using should be able to save the contents of a handle to disk and open it back up again. The supporting code to do this very basic thing minimally involves storing $sth->{NAME} and then the records that follow.

I need to know how to proceed. As a standalone module, it's pretty nifty. As a thing that's available in DBI it would be pretty cool.

I'm new to submitting modules to CPAN. I'm new to the inheritance model of Perl (i've written some things, but I don't want to write anything offensive).


In reply to Re^4: Save a statement handle to a file and open it again as a 'cursor' or something. by uber_spaced
in thread Save a statement handle to a file and open it again as a 'cursor' or something. by uber_spaced

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.