If you try to run ::Loader on the MySQL sakila sample database, it
dies because it cannot find the primary key for a VIEW
I've read
http://search.cpan.org/~nekoya/DBIx-Skinny-Schema-Loader-0.12/lib/DBIx/Skinny/Schema/Loader.pm#HOW_LOADER_FIND_PRIMARY_KEYS
and I understand it, but that refers to a TABLE and not a VIEW.
This small patch allowed me to load the Sakila database:
---
mysql.pm 2010-05-04 16:56:09.127088054 -0400
+++
mysql.pm~ 2009-10-06 11:22:35.000000000 -0400
@@ -8,7 +8,7 @@
my $self = shift;
my $quoter = $self->quoter;
my $namesep = $self->namesep;
- my @tables = $self->{ dbh }->tables(undef, undef, '', 'TABLE');
+ my @tables = $self->{ dbh }->tables(undef, undef, '', '');
s/\Q$quoter\E//g for @tables;
s/^.*\Q$namesep\E// for @tables;
return \@tables;