Weather::MOSMIX::Writer - Write MOSMIX weather forecast data to a DBI handle
my $w = Weather::MOSMIX::Writer->new( dbh => { dsn => 'dbi:SQLite:dbname=db/forecast.sqlite', }, ); my $r = Weather::MOSMIX::Reader->new( writer => $w, ); for my $file (@files) { status("Importing $file\n"); $r->read_zip( $file ); };
Weather::MOSMIX::Writer->create_db
$w->create_db( dsn => 'dbi:SQLite:dbname=db/forecast.sqlite', );
Shorthand to create the database file. If no dbh is already set, this sets the active database handle.
The public repository of this module is https://github.com/Corion/weather-mosmix.
The public support forum of this module is https://perlmonks.org/.
Please report bugs in this module via the RT CPAN bug queue at https://rt.cpan.org/Public/Dist/Display.html?Name=Weather-MOSMIX or via mail to www-Weather-MOSMIX@rt.cpan.org.
Max Maischein corion@cpan.org
corion@cpan.org
Copyright 2019-2020 by Max Maischein corion@cpan.org.
This module is released under the same terms as Perl itself.
To install Weather::MOSMIX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::MOSMIX
CPAN shell
perl -MCPAN -e shell install Weather::MOSMIX
For more information on module installation, please visit the detailed CPAN module installation guide.