Database-Abstraction
view release on metacpan or search on metacpan
lib/Database/Abstraction.pm view on Meta::CPAN
}
Carp::croak('Usage: set_logger(logger => $logger)')
}
# Open the database connection based on the specified type (e.g., SQLite, CSV).
# Read the data into memory or establish a connection to the database file.
# column_names allows the column names to be overridden on CSV files
sub _open
{
if(!UNIVERSAL::isa((caller)[0], __PACKAGE__)) {
Carp::croak('Illegal Operation: This method can only be called by a subclass');
}
my $self = shift;
my $params = Params::Get::get_params(undef, @_);
$params->{'sep_char'} ||= $self->{'sep_char'} ? $self->{'sep_char'} : '!';
my $max_slurp_size = $params->{'max_slurp_size'} || $self->{'max_slurp_size'};
my $table = $self->{'table'} || ref($self);
( run in 2.425 seconds using v1.01-cache-2.11-cpan-1e74a51a04c )