Set $result_source_class->table_class appropriately on views
authorAaron Crane <arc@cpan.org>
Sun, 29 Sep 2013 13:19:19 +0000 (14:19 +0100)
committerAaron Crane <arc@cpan.org>
Wed, 23 Oct 2013 13:39:18 +0000 (14:39 +0100)
commitce2f102ae599b698ade7b725358294e99e72fe97
treea477b24f51a0579fa589a9885f35b199c4f650af
parent68c6c83f83086611e0c992dbcd09e3a77e0fd7ff
Set $result_source_class->table_class appropriately on views

This constitutes partial support for the per-backend TODO items labelled
"introspect view SQL".  I've therefore left those items unchanged for the
backends that are now known to support this, and added a note for this part
of the work to the other backends.

Backends whose DBD implements enough of the DBI table_info method to indicate
whether a relation is in fact a view should also acquire support for setting
table_class, but there are no tests for other backends, so they haven't been
declared working.
Changes
TODO
lib/DBIx/Class/Schema/Loader/Base.pm
lib/DBIx/Class/Schema/Loader/DBI.pm
t/10_01sqlite_common.t
t/10_02mysql_common.t
t/10_03pg_common.t