Home | History | Annotate | Download | only in site_utils

Lines Matching refs:query

150     def _create_dump_from_query(self, query):
151 """Dumps result of a query into a text file.
153 @param query: Query to execute.
155 @return: The path to a tempfile containing the response of the query.
159 parameters = {'db': self._db, 'query': query}
164 '%(db)s -e "%(query)s" > %(filename)s' %
187 query = template % {
193 query = template % {
198 return self._create_dump_from_query(query)
207 query = ('SELECT hostname, labels.name FROM afe_shards AS shards '
212 return self._create_dump_from_query(query)