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 _______________________________________________ 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/dbix-class@lists.rawmode.org/