From: Matt S Trout Date: Tue, 2 Jun 2009 21:13:54 +0000 (+0100) Subject: pm file and some notes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-ResultSource-MultipleTableInheritance.git;a=commitdiff_plain;h=70d56286cc79272c74c9ee70a5253d40fa954bb1 pm file and some notes --- diff --git a/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm b/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm new file mode 100644 index 0000000..a25090e --- /dev/null +++ b/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm @@ -0,0 +1,25 @@ +use MooseX::Declare; + +# how this works: +# +# On construction, we hook $self->result_class->result_source_instance +# if present to get the superclass' source object +# +# When attached to a schema, we need to add sources to that schema with +# appropriate relationships for the foreign keys so the concrete tables +# get generated +# +# We also generate our own view definition using this class' concrete table +# and the view for the superclass, and stored procedures for the insert, +# update and delete operations on this view. +# +# deploying the postgres rules through SQLT may be a pain though. + +class DBIx::Class::ResultSource::MultipleTableInheritance + extends DBIx::Class::ResultSource::View { + + + +} + +1;