Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: __PACKAGE__->add_columns( all! ) in DBIx::Class ?

by arnaud99 (Beadle)
on Mar 08, 2013 at 14:59 UTC ( #1022442=note: print w/ replies, xml ) Need Help??


in reply to __PACKAGE__->add_columns( all! ) in DBIx::Class ?

Hi

If you already have the schema created in your database you can use DBIx::Class::Schema::Loader.

You can run this from the command line by using the dbicdump script

If you run something like dbicdump -o dump_directory=lib MyApp::Schema $dns $user $pass

then your classes will be created under the lib/MyApp/Schema/Result directory

For more info you can use perldoc dbicdump.

hope this helps.

Arnaud.


Comment on Re: __PACKAGE__->add_columns( all! ) in DBIx::Class ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls