X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2Fmysql.pm;h=7d72dda90f4620d83c01c7356534057d9fe492b5;hb=d7e0e0e8e9517098567f1a5637771505476ccbc1;hp=69d1dafd694150ef93e97e74b6f61996fbcb1fa7;hpb=5be6067c51878e5b737a6175922cd33e85bc3684;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm index 69d1daf..7d72dda 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm @@ -363,6 +363,18 @@ sub _column_comment { return $comment; } +sub _view_definition { + my ($self, $view) = @_; + + return scalar $self->schema->storage->dbh->selectrow_array( + q{SELECT view_definition + FROM information_schema.views + WHERE table_schema = schema() + AND table_name = ? + }, undef, $view->name, + ); +} + =head1 SEE ALSO L, L,