« blib/lib/blx/xsdsql/connection/sql/databases/pg.pm
↑ Summary
blib/lib/blx/xsdsql/schema_repository/binding.pm »
| 1 | package blx::xsdsql::generator::sql::generic::handle::addpk; | ||
| 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_binding_objects { | ||
| 9 | my ($self,$schema,%params)=@_; | ||
| 10 | my $root_table=$schema->get_root_table; | ||
| 11 | return wantarray ? ( $root_table ) : [ $root_table ]; | ||
| 12 | } | ||
| 13 | |||
| 14 | sub table_header { | ||
| 15 | my ($self,$table,%params)=@_; | ||
| 16 | $self->_create_indexes($table,%params); | ||
| 17 | return $self; | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; | ||
| 21 | |||
| 22 | __END__ |