blib/lib/blx/xsdsql/generator/sql/generic/handle/drop_extra_tables.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 30 CC 2 SCAR 11.5
CC
2
Cov
0%
table_header
6.0
_get_drop_prefix
2.0
_get_drop_suffix
2.0
CRAP 3.1
1 package blx::xsdsql::generator::sql::generic::handle::drop_extra_tables;
2 use strict; # use strict is for PBP
3 use Filter::Include;
4 include blx::xsdsql::include;
5 #line 6
6 use base qw(blx::xsdsql::generator::sql::generic::handle);
7  
8 sub _get_drop_prefix {
9 my ($self,%params)=@_;
10 return "drop table";
11 }
12  
13 sub _get_drop_suffix {
14 my ($self,%params)=@_;
15 return "";
16 }
17  
18  
19 sub table_header {
20 my ($self,$table,%params)=@_;
21 my $comm=$params{NO_EMIT_COMMENTS} ? '' : $table->get_comment;
22 $self->{STREAMER}->put_line($self->_get_drop_prefix,' ',$table->get_sql_name,' ',$self->_get_drop_suffix,' ',$comm,$table->command_terminator);
23 undef;
24 }
25  
26  
27 1;
28  
29 __END__