skit_pipelines.components.validate_and_add_situations_to_db package¶
Submodules¶
skit_pipelines.components.validate_and_add_situations_to_db.queries module¶
Module contents¶
- validate_and_add_situations_to_db(situations: str, scenario: str, scenario_category: str) skit_pipelines.types.situation_mapping_info.SituationMappingInfo [source]¶
Check if the situation exists in db, if exists return the id else insert the situation to db and return the id
- validate_and_add_situations_to_db_op(situations: str, scenario: str, scenario_category: str)¶
Validate and add situations to db Check if the situation exists in db, if exists return the id else insert the situation to db and return the id