<s> from __future__ import absolute_import , unicode_literals <EOL> SELECT_TYPES_SQL = """<STR_LIT>""" <EOL> def get_type_names ( connection ) : <EOL> """<STR_LIT>""" <EOL> cursor = connection . cursor ( ) <EOL> cursor . execute ( SELECT_TYPES_SQL ) <EOL> rows = cursor . fetchall ( ) <EOL> return set ( [ i [ <NUM_LIT:1> ] for i in rows ] ) <EOL> def type_exists ( connection , type_name ) : <EOL> """<STR_LIT>""" <EOL> type_name = type_name . lower ( ) <EOL> return type_name in get_type_names ( connection ) </s>
