def runner(target_db, db_config): """ | Name | Running Order | Requires | | --------- | ------------- | -------- | | | | | | | | | | | | | """ entity_name = "warnings" extra_entities = ["clients", "deputies"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.debug("insert_client_violent_warnings") insert_client_violent_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_client_special_warnings") insert_client_special_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_client_saarcheck_warnings") insert_client_saarcheck_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_client_nodebtchase_warnings") insert_client_nodebtchase_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_client_person_warning") insert_client_person_warning( target_db=target_db, db_config=db_config, ) log.debug("insert_deputy_violent_warnings") insert_deputy_violent_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_deputy_special_warnings") insert_deputy_special_warnings( target_db=target_db, db_config=db_config, ) log.debug("insert_deputy_person_warning") insert_deputy_person_warning( target_db=target_db, db_config=db_config, )
def runner(target_db, db_config): """ | Name | Running Order | Requires | | --------- | ------------- | -------- | | persons | 1 | | | addresses | 2 | persons | | | | | """ entity_name = "clients" if not check_entity_enabled(entity_name): return False log.info(log_title(message=entity_name)) log.debug("insert_persons_clients") insert_persons_clients( target_db=target_db, db_config=db_config, ) log.debug("insert_addresses_clients") insert_addresses_clients( target_db=target_db, db_config=db_config, ) log.debug("insert_phonenumbers_clients") insert_phonenumbers_clients( target_db=target_db, db_config=db_config, )
def runner(target_db, db_config): """ | Name | Running Order | Requires | | ------------- | ------------- | -------------------------- | | client_death | 1 | persons (clients) | | deputy_death | 2 | persons (deputies) | | | | | """ entity_name = "death" extra_entities = ["clients", "deputies"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.info("Inserting client_death_notifications") insert_client_death_notifications( target_db=target_db, db_config=db_config, ) log.info("Inserting deputy_death_notifications") insert_deputy_death_notifications( target_db=target_db, db_config=db_config, )
def runner(target_db, db_config): """ | Name | Running Order | Requires | | --------- | ------------- | -------- | | | | | | | | | | | | | """ entity_name = "visits" if not check_entity_enabled(entity_name): return False log.info(log_title(message=entity_name)) log.debug("Not currently implemented")
def runner(target_db, db_config): """ | Name | Running Order | Requires | | --------- | ------------- | -------- | | persons | 1 | | | phonenumbers | 2 | persons | | | | | """ entity_name = "deputies" extra_entities = ["clients", "cases"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.debug("insert_persons_deputies") insert_persons_deputies(target_db=target_db, db_config=db_config) log.debug("insert_phonenumbers_deputies") insert_phonenumbers_deputies_daytime( target_db=target_db, db_config=db_config, ) insert_phonenumbers_deputies_evening( target_db=target_db, db_config=db_config, ) log.debug("insert_addresses_deputies") insert_addresses_deputies( target_db=target_db, db_config=db_config, ) log.debug("insert_order_deputies") insert_order_deputies( target_db=target_db, db_config=db_config, )
def runner(db_config, target_db): """ | Name | Running Order | Requires | | --------------------------| ------------- | -------- | | supervision_level_log | 1 | cases | | | | | """ entity_name = "supervision_level" extra_entities = ["cases"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.debug("insert_supervision_level_log") insert_supervision_level_log( db_config, target_db, )
def runner(target_db, db_config): """ | Name | Running Order | Requires | | ------------- | -------------- | ------------ | | notes | 1 | | | caseitem_note | 2 | notes, cases | | | | | """ entity_name = "remarks" extra_entities = ["cases"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.debug("insert_notes") insert_notes(target_db=target_db, db_config=db_config) log.debug("insert_caseitem_note") insert_caseitem_note(target_db=target_db, db_config=db_config)
def runner(db_config, target_db): """ | Name | Running Order | Requires | | ------------------------- | ------------- | ------------------------- | | cases | 1 | | | person_caseitem | 2 | cases, clients_persons | """ entity_name = "cases" extra_entities = ["clients"] if not check_entity_enabled(entity_name, extra_entities): return False log.info(log_title(message=entity_name)) log.debug("insert_cases") insert_cases(target_db=target_db, db_config=db_config) log.debug("insert_person_caseitem") insert_person_caseitem( target_db=target_db, db_config=db_config, )