def has_table(self, table):
        """
        Determine if the given table exists.

        :param table: The table
        :type table: str

        :rtype: bool
        """
        sql = self._grammar.compile_table_exists()
        database = self._connection.get_database_name()
        table = self._connection.get_table_prefix() + table

        return len(self._connection.select(sql, [database, table])) > 0
dataset/ETHPy150Open sdispater/orator/orator/schema/mysql_builder.py/MySQLSchemaBuilder.has_table/original