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