def __init__(self, sql_statement):
    self.sql = sql_statement
    self._table_names = set()
    self._alias_names = set()
    logging.info('Parsing with sqlparse statement {}'.format(self.sql))
    self._parsed = sqlparse.parse(self.sql)
    for statement in self._parsed:
        self.__extract_from_token(statement)
    self._table_names = (self._table_names - self._alias_names)
def __init__(self, sql_statement):
    self.sql = sql_statement
    self._table_names = set()
    self._alias_names = set()
    logging.info('Parsing with sqlparse statement {}'.format(self.sql))
    self._parsed = sqlparse.parse(self.sql)
    for statement in self._parsed:
        self.__extract_from_token(statement)
    self._table_names = (self._table_names - self._alias_names)