| 1 | package MMM::OracleDump; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | require Exporter; | |||||||||
| 5 | 1 | @ISA = qw(Exporter AutoLoader); | |||||||||
| 6 | 1 | @EXPORT = qw( | |||||||||
| 7 | get_table_list | ||||||||||
| 8 | ); | ||||||||||
| 9 | 1 | $VERSION = '0.01'; | |||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub get_table_list { | ||||||||
|
Subroutine
get_table_list: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 14 | 0 | my $dbh = shift; | |||||||||
| 15 | 0 | my $sql = qq/ SELECT TABLE_NAME FROM CAT WHERE TABLE_TYPE='TABLE' /; | |||||||||
| 16 | 0 | my $qh = $dbh->prepare($sql); | |||||||||
| 17 | 0 | $qh->execute(); | |||||||||
| 18 | 0 | my @tables; | |||||||||
| 19 | my $row; | ||||||||||
| 20 | 0 | ▶ | while ($row = $qh->fetch() ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | push @tables, $row->[0]; | |||||||||
| 22 | } | ||||||||||
| 23 | 0 | $qh->finish; | |||||||||
| 24 | 0 | return @tables; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | 1 | 1; | |||||||||
| 29 | __END__ | ||||||||||