Convenience tasks

There are a number of tasks and functions useful for basic, repetitive operations like interacting with or uploading tables to CARTO.

Makefile

The Makefile makes it easier to run tasks.

Run any task

Any task can be run with:

make -- run path.to.module ClassName --param-name-1 value1 --param-name-2 value2

For example:

make -- run us.bls QCEW --year 2014 --qtr 4

Other tasks

  • make dump: Runs DumpS3
  • make restore <path/to/dump>: Restore database from a dump.
  • make sync-meta: Runs SyncMetadata
  • make sync-data: Runs SyncAllData
  • make sh: Drop into an interactive shell in the Docker container
  • make psql: Drop into an interactive psql session in the database
  • make kill: Kill all Docker processes
  • make docs: Regenerate all documentation
  • make catalog: Regenerate the HTML catalog