Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num body Assign NameStore Dict Str Str NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad SubscriptLoad NameLoad Index Str attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Break Print Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A N/A Command-line application to perform an synchronous query in BigQuery.

This sample is used on this page:

    https://cloud.google.com/bigquery/querying-data#syncqueries

For more information, see the README.md under /bigquery.
 N/A argparse N/A json googleapiclient discovery oauth2client.client GoogleCredentials sync_query N/A N/A bigquery project_id query timeout num_retries N/A 10000 5 N/A N/A query_data N/A query timeoutMs query timeout N/A N/A N/A N/A N/A N/A N/A bigquery jobs query projectId project_id body query_data execute num_retries num_retries N/A main N/A N/A project_id query timeout num_retries N/A N/A N/A credentials N/A N/A GoogleCredentials get_application_default N/A bigquery N/A N/A discovery build bigquery v2 credentials credentials N/A query_job N/A sync_query bigquery project_id query timeout num_retries N/A results N/A N/A page_token None N/A True N/A N/A page N/A N/A N/A N/A N/A N/A bigquery jobs getQueryResults pageToken page_token N/A query_job N/A jobReference execute num_retries 2 N/A N/A N/A results extend N/A N/A page get rows N/A N/A page_token N/A N/A page get pageToken N/A N/A page_token N/A N/A N/A N/A N/A json dumps results N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser description __doc__ formatter_class N/A argparse RawDescriptionHelpFormatter N/A N/A N/A parser add_argument project_id help Your Google Cloud project ID. N/A N/A N/A parser add_argument query help BigQuery SQL Query. N/A N/A N/A parser add_argument -t --timeout help Number seconds to wait for a result type int default 30 N/A N/A N/A parser add_argument -r --num_retries help Number of times to retry in case of 500 error. type int default 5 N/A args N/A N/A parser parse_args N/A N/A main N/A args project_id N/A args query N/A args timeout N/A args num_retries