cowidev.grapher.db¶
- cowidev.grapher.db.procs
- cowidev.grapher.db.utils
- cowidev.grapher.db.utils.db
- cowidev.grapher.db.utils.db_imports
- cowidev.grapher.db.utils.db_utils
DBUtilsDBUtils.__fetch_parent_tag()DBUtils.__get_cached_entity_id()DBUtils.associate_dataset_tag()DBUtils.execute()DBUtils.execute_until_empty()DBUtils.fetch_many()DBUtils.fetch_one()DBUtils.fetch_one_or_none()DBUtils.get_counts()DBUtils.get_entity_cache()DBUtils.get_or_create_entity()DBUtils.insert_one()DBUtils.note_import()DBUtils.prefill_entity_cache()DBUtils.touch_variable()DBUtils.upsert_dataset()DBUtils.upsert_many()DBUtils.upsert_one()DBUtils.upsert_parent_tag()DBUtils.upsert_source()DBUtils.upsert_tag()DBUtils.upsert_variable()
NotOnenormalize_entity_name()
- cowidev.grapher.db.utils.slack_client
- cowidev.grapher.db.utils.utils
cowidev.grapher.db.__main__¶
Updates to grapher database.
These are executed in grapherupdate.sh, by calling cowidev-grapher-db.
Some grapher updates are run separately, by means of run_grapher_db step in library step.
cowidev.grapher.db.base¶
- class cowidev.grapher.db.base.GrapherBaseUpdater(dataset_name: str, source_name: str, zero_day: str, input_csv_path: str | None = None, slack_notifications: bool = False, namespace: str = 'owid', year_is_day: bool = True, unit: str = '', unit_short: str | None = None)[source]¶
Bases:
object- property input_csv_path¶
- property project_dir¶
- property time_str¶