« blib/lib/blx/xsdsql/xsd_parser/type_restriction.pm
↑ Summary
blib/lib/blx/xsdsql/xsd_parser/node/redefine.pm »
| 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__ |