pm file and some notes
Matt S Trout [Tue, 2 Jun 2009 21:13:54 +0000 (22:13 +0100)]
lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm [new file with mode: 0644]

diff --git a/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm b/lib/DBIx/Class/ResultSource/MultipleTableInheritance.pm
new file mode 100644 (file)
index 0000000..a25090e
--- /dev/null
@@ -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;