DBIx::Class::ResultSource::MultipleTableInheritance is finally out.

The idea behind multiple table inheritance is to combine multiple tables behind a view that is writable and updateable like a normal table, which can allow you to do all sorts of nifty things. The combination of the tables is accomplished via a set of triggers and rules for insertion and deletion. These rules are the heart of the beast. Check out the synopsis for some examples.

mst first spoke about this at the London Perl Workshop in 2008, and he recorded a video about it at nwe.pm in 2009.

The rule-generation is Postgres-specific now, but theoretically, if a database has writable views, MTI should be able to support it. Theoretically.

Try it out!

Enhanced by Zemanta

SPEAK / ADD YOUR COMMENT
Comments are moderated.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Return to Top