John Napiorkowski wrote:
> --- Matt S Trout <[EMAIL PROTECTED]> wrote:
> 
>> On Sun, Jul 29, 2007 at 11:44:23AM -0700, 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.
>> Why?
>>
>> What would this achieve for you?
>>
>> (this is not "it's a bad idea", it's "what problem
>> are you intending this
>> to solve")
> 
> I think the main idea is to push stuff into a
> configuration file when it's not code that doing
> logical work.  This way I can push down some simple
> maintenance work to admins.  Also I've been playing
> with MooseX::IOC lately and thinking about what makes
> sense to push into a configuration for the purposes of
> being able to manage my applications more easily.
> 
> To be honest I'm on the wall with this particular
> idea, which is why I thought to ask the group for
> thoughts.
> 
> I have a similar idea which honestly makes more sense
> to me, which is to have a quick system to call
> $schema->populate against a configuration file.  This
> is actually quite easy to do, particularly now with
> the new multi create logic.  Then my database deploy
> scripts and tests can be easy to configure.

Sounds like Fixtures to me, and something that I've been meaning to work
on for a while now, just not got round to. I guess that would do it really.

-ash

_______________________________________________
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/

Reply via email to