--- Jess Robinson <[EMAIL PROTECTED]>
wrote:

> 
> 
> 
> On Sun, 29 Jul 2007, John Napiorkowski wrote:
> 
> > Hi,
> >
> > I am seriously considering writing a system to
> create
> > DBIx Classes via a configuration file.  Since the
> > default for creating these classes are primarily
> > package method calls I think this could be pretty
> > easy.
> >
> > So we could replace:
> >
> > package myapp::Schema::foo
> >
> > __PACKAGE__->load_components( ... );
> > __PACKAGE__table('foo');
> >
> > (rest of your setup)
> >
> > With (something like in evil YAML)
> >
> > Schema:
> >  foo:
> >    table: foo
> >    load_components:
> >      - comp1
> >      - comp2
> >
> >
> 
> If you didnt insist on your own formatting, you can
> do this fairly 
> trivially already, since SQL::Translator reads/has
> YAML, XML and various 
> other formats.. And someone was writing a backend
> for ::Schema::Loader 
> which would use SQL::Translator.. (hmm, who was
> that?)
> 
> Jess

I definitely won't insist on my own formatting and was
thinking something similar.  Maybe the project you
mentioned would be a better use of my sparing spare
time.  If someone is owning this and wants some help,
please let me know.  If not, I'll take a look and see
what would be involved.  --john


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to