def table_exists(self, table_name):
    'Method checks if table exists\n\n        Args:   \n           table_name (str): table\n\n        Returns:\n           bool: result\n\n        '
    if ((table_name is not None) and (table_name != '')):
        query = "SELECT count(*) found FROM information_schema.tables WHERE table_catalog=%s AND table_type='BASE TABLE' and table_name=%s"
        self._cursor.execute(query, (self._dbname, table_name))
        recs = self._cursor.fetchall()
        result = (True if (recs[0]['found'] == 1) else False)
    return result
Method checks if table exists

Args:   
   table_name (str): table

Returns:
   bool: result
def table_exists(self, table_name):
    'Method checks if table exists\n\n        Args:   \n           table_name (str): table\n\n        Returns:\n           bool: result\n\n        '
    if ((table_name is not None) and (table_name != )):
        query = "SELECT count(*) found FROM information_schema.tables WHERE table_catalog=%s AND table_type='BASE TABLE' and table_name=%s"
        self._cursor.execute(query, (self._dbname, table_name))
        recs = self._cursor.fetchall()
        result = (True if (recs[0]['found'] == 1) else False)
    return result