#!/usr/bin/perl -w
#
+# Normally run from
+# update-master-info
+#
# usage: ./db-idempotent-populate <Oceanname>
# creates or updates OCEAN-Oceanname.db
# from master-master.txt
;
foreach my $commod (sort keys %commods) {
my $c= $commods{$commod};
+ die "no mass for $commod" unless defined $c->{Mass};
+ die "no colume for $commod" unless defined $c->{Volume};
my @qa= ($c->{Mass}, $c->{Volume}, $commod);
$insert->execute(@qa);
$update->execute(@qa);