Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: RFC: Name and/or API for module ("Type::FromData")

by tobyink (Abbot)
on Apr 10, 2014 at 10:44 UTC ( #1081790=note: print w/ replies, xml ) Need Help??

in reply to RFC: Name and/or API for module ("Type::FromData")


If it had the ability to integrate with DBI (for example, once it's finished guessing, to actually create the table and pump the data in), or if you plan to add such a feature, then I'd recommend something in the "DBIx::*" namespace, which is generally used for extensions to DBI.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Comment on Re: RFC: Name and/or API for module ("Type::FromData")
Replies are listed 'Best First'.
Re^2: RFC: Name and/or API for module ("Type::FromData")
by Corion (Pope) on Apr 10, 2014 at 10:59 UTC

    Thank you for the name suggestion! I usually come up with three level names, but I am under the impression that they are considered too unwieldly by other people more adept with naming things. But I like the name...

    I try to keep the functionality of generating SQL and executing SQL separate, as usually I prefer to review DDL and manually run it with a user that has the appropriate permissions. DBI might still be needed to import the appropriate SQL_ type constants, but that wouldn't imply the DBIx namespace for me.

      I think this is a good case for a 3-part name. I could see other modules ending up in the SQL::Type bucket. And SQL::Type::Guess is quite short and seems pretty precisely "on the nose" at the purpose of this module.

      - tye        

      Perhaps you can use two different names. One for the actual name, being of three or more parts, another to group such things together. That is:

      SQL::Lazy (or just, Lazy, first adding Lazy::SQL). Then adding more modules to it be to truly lazy, (and eventually renaming it to Perl.:P )

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081790]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2015-11-28 05:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls