--- nfo/perl/libs/Data/Storage/Handler/Tangram.pm 2002/12/19 16:31:53 1.23 +++ nfo/perl/libs/Data/Storage/Handler/Tangram.pm 2003/01/19 02:30:05 1.25 @@ -1,8 +1,14 @@ ############################################ # -# $Id: Tangram.pm,v 1.23 2002/12/19 16:31:53 joko Exp $ +# $Id: Tangram.pm,v 1.25 2003/01/19 02:30:05 joko Exp $ # # $Log: Tangram.pm,v $ +# Revision 1.25 2003/01/19 02:30:05 joko +# + fix: modified call to '_initSchema' +# +# Revision 1.24 2002/12/22 14:13:01 joko +# + sub dropDb +# # Revision 1.23 2002/12/19 16:31:53 joko # +- renamed sub to 'rebuildDb' # @@ -163,8 +169,12 @@ my $self = shift; my $dsn = shift; + +#print Dumper($self); +#exit; + + # TODO: re-enable $dsn ||= $self->{locator}->{dbi}->{dsn}; - $logger->debug( __PACKAGE__ . "->connect( dsn $dsn )" ); #my $storage = Tangram::Relational->connect( $schema, $dsn ); @@ -176,7 +186,8 @@ # return; # } - return unless $self->_initSchema(); + #return unless $self->_initSchema(); + $self->_initSchema(); # create the main tangram storage object #$self->{COREHANDLE} = Tangram::Relational->connect( $schema, $dsn ); @@ -645,4 +656,10 @@ return $self->{_COREHANDLE}; } +sub dropDb { + my $self = shift; + my $storage = $self->_getSubLayerHandle(); + return $storage->dropDb(); +} + 1;