Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RFC: Module namespace suggestion

by izut (Chaplain)
on Feb 14, 2007 at 14:19 UTC ( #599948=perlmeditation: print w/ replies, xml ) Need Help??

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.

Comment on RFC: Module namespace suggestion
Select or Download Code
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://599948]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2014-09-17 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (87 votes), past polls