X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FMSSQL.pm;h=bfc205374447b1ce200b8ba07dde339e3d92e39b;hb=acfcc1fb32b80628b8fb50258d90bc1e8a72f9e0;hp=a0a178543d69ded032cafd5406a8ce0e2c4c7c68;hpb=deedd5761dc499f7a9121734cd6a02eb8991c93f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm index a0a1785..bfc2053 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm @@ -12,20 +12,34 @@ our $VERSION = '0.05003'; DBIx::Class::Schema::Loader::DBI::MSSQL - DBIx::Class::Schema::Loader::DBI MSSQL Implementation. -=head1 SYNOPSIS +=head1 DESCRIPTION - package My::Schema; - use base qw/DBIx::Class::Schema::Loader/; +Base driver for Microsoft SQL Server, used by +L for support +via L and +L for support via +L. - __PACKAGE__->loader_options( debug => 1 ); +See L and L for +usage information. - 1; +=cut -=head1 DESCRIPTION +sub _tables_list { + my $self = shift; -See L. + my $dbh = $self->schema->storage->dbh; + my $sth = $dbh->prepare(<<'EOF'); +select t.table_name +from information_schema.tables t +where t.table_schema = ? +EOF + $sth->execute($self->db_schema); -=cut + my @tables = map lc $_, map @$_, @{ $sth->fetchall_arrayref }; + + return $self->_filter_tables(@tables); +} sub _table_pk_info { my ($self, $table) = @_; @@ -130,6 +144,8 @@ sub _extra_column_info { =head1 SEE ALSO +L, +L, L, L, L