Re: Mysql::Simple?

From: Brian McCauley (nobull_at_mail.com)
Date: 01/31/04

  • Next message: David Phillips: "Re: Win32::EventLog problem with event ID 560"
    Date: 31 Jan 2004 13:42:41 +0000
    
    

    Dan Bolser <dmb@mail.mrc-dunn.cam.ac.uk> writes:

    > On Thu, 29 Jan 2004, kz wrote:
    >
    > > "Dan Bolser" <dmb@mail.mrc-dunn.cam.ac.uk> wrote in message
    > > news:Pine.LNX.4.21.0401291309300.24595-100000@mail.mrc-dunn.cam.ac.uk...
    > > >
    > > > Hello, I have a pet module called Mysql::Simple, would anyone be
    > > > interested in making it a CPAN module? It doesn't do much (mostly
    > > > concerned with connection), and I am lazy,but I guess CPAN is the best
    > > > home for my pet?
    > >
    > > What extra features would your module offer what you can't (simply) do with
    > > DBI? I wouldn't reinvent the wheel...

    > My (simple) way you say...
    >
    > use Mysql::Simple 'doQuery';
    >
    > doQuery("anything you like");
    >
    > __END__
    >
    > The module reads config files from standard places, and also does a
    > GetOptions passthrough to interpret standard mysql options, finally it
    > does Term::ReadPassword if it can't find a password. I still need to make
    > it work with standard DBI environment variables, but it is no bigie.

    Sounds to me like your module is a wrapper for DBI just like
    LWP::Simple is for LWP::UserAgent.

    In that case I think your module belongs in DBIx not Mysql.

    I have no view one way or the other on if DBI actually needs such a
    wrapper.

    -- 
         \\   ( )
      .  _\\__[oo
     .__/  \\ /\@
     .  l___\\
      # ll  l\\
     ###LL  LL\\
    

  • Next message: David Phillips: "Re: Win32::EventLog problem with event ID 560"

    Relevant Pages

    • Re: Mysql::Simple?
      ... >> GetOptions passthrough to interpret standard mysql options, ... >> it work with standard DBI environment variables, ... > In that case I think your module belongs in DBIx not Mysql. ... although I think calling this a DBI wrapper is OK, ...
      (comp.lang.perl.modules)
    • Re: Mysql::Simple?
      ... GetOptions passthrough to interpret standard mysql options, ... it work with standard DBI environment variables, ... This way I find it easy to set up and wangle connection details. ... > Fetches the next row of data and returns a reference to an array holding the ...
      (comp.lang.perl.modules)
    • Re: Forth Frustrations
      ... I think implementing LSE64 any other way in Standard Forth would be too complicated and slow. ... implementing Standard Forth as a wrapper around LSE64 would be easier. ... Sorry, that may work on your platform, but I know a real-world platform sitting about two feet from me as I type this where it isn't true. ...
      (comp.lang.forth)
    • Re: Forth Frustrations
      ... I think implementing LSE64 any other way in Standard Forth would be too complicated and slow. ... implementing Standard Forth as a wrapper around LSE64 would be easier. ... Sorry, that may work on your platform, but I know a real-world platform sitting about two feet from me as I type this where it isn't true. ...
      (comp.lang.forth)
    • Re: different field delimiters - newbie ques.
      ... Also is it standard to have ... > Then in your perl script do this: ... > use DBI; ...
      (perl.dbi.users)