@with_formatter(format_info)<EOL><INDENT>def query_info(self, name, like, kind):<DEDENT>
kind = self._make_kind_id(kind)<EOL>sql = '<STR_LIT>''<STR_LIT>''<STR_LIT>'.format('<STR_LIT>' if like else '<STR_LIT:=>')<EOL>args = (name,)<EOL>if like:<EOL><INDENT>sql += '<STR_LIT>'<EOL>args = (name, '<STR_LIT:\\>')<EOL><DEDENT>if kind:<EOL><INDENT>sql += '<STR_LIT>'<EOL>args = (name, kind)<EOL><DEDENT>if like and kind:<EOL><INDENT>args = (name, '<STR_LIT:\\>', kind)<EOL><DEDENT>logging.debug('<STR_LIT>', sql, args)<EOL>self.cursor.execute(sql, args)<EOL>return self.cursor.fetchall(), self<EOL>
Query the information of the name in the database.