Adding get_single_record_from_query and get_or_create_in_transaction utility functions. In hindsight, the former function could probably be replaced with the .one() function in SQLAlchemy which throws an exception for non-unique record sets.
Adding get_single_record_from_query and get_or_create_in_transaction utility functions.
In hindsight, the former function could probably be replaced with the .one() function in SQLAlchemy which throws an exception for non-unique record sets.

Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab