[Dbix-class] RFC: Thoughts on a serialization format for Classes
John Napiorkowski
jjn1056 at yahoo.com
Tue Jul 31 18:28:56 GMT 2007
--- Jess Robinson <castaway at desert-island.me.uk>
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
More information about the Dbix-class
mailing list