def CompileQuery(schema, bound_query_str):
 if isinstance(bound_query_str, tuple):
  (query_str, param_dict) = bound_query_str
 else:
  query_str = bound_query_str
  param_dict = None
 query = _query_cache.Get((schema, query_str), (lambda : Query(schema, query_str)))
 return (query, param_dict)

def CompileQuery ( schema , bound_query_str ) : if isinstance ( bound_query_str , tuple ) : ( query_str , param_dict ) = bound_query_str else : query_str = bound_query_str param_dict = None query = _query_cache . Get ( ( schema , query_str ) , ( lambda : Query ( schema , query_str ) ) ) return ( query , param_dict )
returns a bound query (a pair) for the given schema and query expression .