parameters: (connect)
docstring: 数据库是否已存在
docstring_summary: 数据库是否已存在
docstring_tokens: 数据库是否已存在
function: def is_exist_db(connect):
      """数据库是否已存在"""
      try:
          cur = connect.cursor()
          cur.execute("SELECT id FROM StockTypeInfo limit 1")
          a = cur.fetchone()
          cur.close()
          return True if a else False
      except:
          return False
function_tokens: def is_exist_db ( connect ) : try : cur = connect . cursor ( ) cur . execute ( "SELECT id FROM StockTypeInfo limit 1" ) a = cur . fetchone ( ) cur . close ( ) return True if a else False except : return False