mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-06 08:50:04 -06:00
State populations database sample
This is a toy dataset that demonstrates many revisons to a small number of rows.
Files
1790.psv,1800.psv, etc.: Yearly population data, keyed by state name.1850_no_pop.psv: separate dataset, with true / false values for statehood for many states as of that yearschema_with_is_a_state.json: Schema definition for year datasetsschema_with_is_a_state.json: Schema definition for1850_no_pop.psva-states.psv: Subset of state data for states starting with 'a'c-states.psv: Subset of state data for states starting with 'c'create_db.sh: Bash script to create a dataset with all years' data.
Workflow
See create_db.sh for details. Run the script to create a new dolt database with one commit for each year of data. The
script doesn't use the schema files because the schema can be inferred.