App-csv2sqlite
view release on metacpan or search on metacpan
lib/App/csv2sqlite.pm view on Meta::CPAN
has dbh => (
is => 'lazy',
);
sub _build_dbh {
my ($self) = @_;
# TODO: does the dbname need to be escaped in some way?
my $dbh = DBI->connect('dbi:SQLite:dbname=' . $self->dbname, undef, undef, {
RaiseError => 1,
PrintError => 0,
sqlite_unicode => $self->encoding ? 1 : 0,
});
return $dbh;
}
sub encoding {
return $_[0]->loader_options->{file_encoding};
}
sub help { Getopt::Long::HelpMessage(2); }
( run in 0.307 second using v1.01-cache-2.11-cpan-88abd93f124 )