Two things:
Don't require your users to use Perl 5.8. Normally i just throw the tar ball away and move on, but in the case of this module i did a little source searching and found that Constants.pm contained a Perl 5.8 specific: the newest constant.pm module. "The most recent version '1.04' of the module 'constant' comes with the current version of perl (5.8.0)."
use constant {DBX_CURSOR_RANDOM => 0, DBX_CURSOR_FORWARD => 1};
i recommend changing that code to the more backward compatible:
use constant DBX_CURSOR_RANDOM => 0; use constant DBX_CURSOR_FORWARD => 1;
The second item is your use of AUTOLOAD in DBX.pm. Always define a DESTROY subroutine, even if it is empty and does nothing. When a DBX object is 'terminated', AUTOLOAD will be needlessly called.

Finally, while i certainly do not mind this module being available, i probably won't be using it for the same reasons that rdfield, Tomte, and Aristotle mentioned. If i want another abstraction, i use Class::DBI. Someday i hope that Pixie will make it's way into my production code (i think).

One reason i probably won't use your module is because i really can't stand record pointer style interfaces, they remind me too much of my SQL Server 7 days. >P

DBI's selectall_arrayref and selectcol_arrayref have been more than enough for me to get database work done. Most of the time i just ship the resulting datastructures over to HTML::Template without even knowing what the field names are.

Thanks for contributing though, i for one appreciate it. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) Re: DBX offers simplified access to the DBI by jeffa
in thread DBX offers simplified access to the DBI by batkins

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.