[Dbix-class] Using DBIx::Class::Schema::Loader
Matt S Trout
dbix-class at trout.me.uk
Fri Mar 21 21:04:52 GMT 2008
On Tue, Mar 11, 2008 at 11:48:16AM -0700, Emily Heureux wrote:
> Before I get too excited, I want to make sure I understand what the Loader
> does. (I am using Catalyst.) It SOUNDS like, I can write a short Schema
> module that will go in and automatically create a schema file like
> MyAppDB.pm, read all the tables in my existing mysql db and set up
> relationships??? Is that true? Will it also create the MyAppDB/ classes?
Yes, and create=static will write the files to disk for you as well.
You can pass these as options to the Catalyst model helper if you want, see
perldoc Catalyst::Helper::Model::DBIC::Schema.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the DBIx-Class
mailing list