[Dbix-class] RFC: Module::Install::DBIxClass

Sebastian Riedel sri at oook.de
Tue Apr 25 14:07:23 CEST 2006


Deployment could be much easier with a Module::Install extension for  
DBIx::Class.

Could work like this, you add a line to your Makefile.PL:

     dbix_class();

And then get one or more make targets generated which use env vars  
for configuration:

     % perl Makefile.PL
     ...
     % make
     ....
     % export $ENV{DBIX_CLASS_SCHEMA} = 'MyApp::Schema::BlogDB'
     % export $ENV{DBIX_CLASS_DSN} = 'dbi:sqlite:/foo/bar.db'
     % make dbix_class_deploy
     Deploying schema from "MyApp::Schema::BlogDB" to "dbi:sqlite:/ 
foo/bar.db".
     ...


What do you think?


--
sebastian




More information about the Dbix-class mailing list