datasette/importers/owid.sh

8 lines
280 B
Bash

#!/usr/bin/env bash
${csvsToSqlite}/bin/csvs-to-sqlite \
--shape 'Entity:entity(text),Code:code(text),Year:year(integer),Cumulative CO2 emissions:cumulative_co2_emissions(real)' \
--index entity \
--index code \
--index year \
--replace-tables \
$src $out