Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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")

"SQL::Type::Guess"?

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")
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.

      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 )

      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        

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-17 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (71 votes), past polls