http://www.perlmonks.org?node_id=599948

Hi,

I developed, inspired by Tao::DBI module, a DBI subclass that supports named placeholders like Oracle does, e.g. INSERT INTO my_table (id, name) VALUES (:id, :name). It is pretty simple, but is totally compatible with DBI.

My problem is I need a name for it. Some suggestions I took were DBIx::WithNamedPlaceholder and DBI::NamedPlaceholder.

What do you think? Have a better suggestion?

Igor 'izut' Sutton
your code, your rules.

Replies are listed 'Best First'.
Re: RFC: Module namespace suggestion
by dragonchild (Archbishop) on Feb 14, 2007 at 15:24 UTC
    If it's really simple and totally compatible with DBI, why not submit it as a patch to DBI? That way, everyone gets to use your work instead of just those people who find it. I know that if it was in DBI, I'd use it. If it's in some other module, 10-1 I wouldn't be able to get it installed.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

      Thanks for your response. I think this could be included on DBI, but now it relies on SQL::Tokenizer to, well, extract tokens from a SQL query, but it is pure Perl and uses only regular expressions, so would be slow for most people.

      Maybe I could call it DBIx::NamedPlaceholder for instance, to people start using it, and then propose make it a patch into DBI.

      Would this be a good plan?

      Igor 'izut' Sutton
      your code, your rules.

        That sounds completely reasonable. Alternately, you could called it DBIx::Placeholder::Named, but your solution is just fine.

        My criteria for good software:
        1. Does it work?
        2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?