def query_info(self, name, like, kind):
        """Query the information of the name in the database."""
        kind = self._make_kind_id(kind)
        # Database from VS2015 does not have assoc_text.
        #
        # sql = 'select name, kind, file_id, type, assoc_text ' \
        #       'from code_items ' \
        #       'where name {} ?'.format('like' if like else '=')
        sql = 'select name, kind, file_id, type ' \
              'from code_items ' \
              'where name {} ?'.format('like' if like else '=')
        args = (name,)
        if like:
            sql += ' escape ?'
            args = (name, '\\')
        if kind:
            sql += ' and kind = ?'
            args = (name, kind)
        if like and kind:
            args = (name, '\\', kind)
        logging.debug('%s %s', sql, args)
        self.cursor.execute(sql, args)
        return self.cursor.fetchall(), self
Query the information of the name in the database.