"""Logic for Hello. Hello World is one of the most complex operations in the world. It requires all the robots and nanotechnology from Terminator to define whether or not our future will survive an apocalypse. In other words: always make sure that whenever you add a description it's something meaningful that you will enjoy reading days, months, or years later. One more thing: you will automatically be associated with those, and some of us really enjoy “git blame”. """ from owsresponse import response from socials.connectors import snowflake def say_hello(name=None): """Logic handlers. Args: name (str): the name to display alongside the Hello. Returns: Response: the hello message. """ if not name or isinstance(name, str) and not name.strip(): return response.Response('Hello') return response.Response('Hello {}!'.format(name)) def check_db_health(): """Check snowflake connection.""" sql = 'SELECT 1;' response = snowflake.fetchone(sql, {}) return response