MCPcopy
hub / github.com/google/clusterfuzz / get

Function get

src/appengine/handlers/commit_range.py:127–137  ·  view source on GitHub ↗

Get the data from BigQuery.

(params, query, offset, limit)

Source from the content-addressed store, hash-verified

125
126
127def get(params, query, offset, limit):
128 """Get the data from BigQuery."""
129 sql = SQL.format(
130 table_id='%ss' % params['type'],
131 where_clause=query.get_where_clause(),
132 prefix=params['type'],
133 offset=offset,
134 limit=limit)
135 client = big_query.Client()
136 result = client.query(query=sql, offset=offset, limit=limit)
137 return result.rows, result.total_count
138
139
140def get_result():

Callers 1

get_resultFunction · 0.70

Calls 3

queryMethod · 0.95
formatMethod · 0.80
get_where_clauseMethod · 0.80

Tested by

no test coverage detected