Database Reference
In-Depth Information
rerun a query every time a table changes. Following is an example that reads
the table scratch.table1 after running a Load job that added one row:
$ curl -H "$(python auth.py)" \
- H "Content-Type: application/json" \
- X GET \
"${TABLES_URL}/table1"
{
"tableReference": {
"projectId": "bigquery-e2e",
"datasetId": "scratch",
"tableId": "table1"
},
"schema": {
"fields": [
{
"name": "f1",
"type": "STRING"
}
]
},
"numRows": "1",
"numBytes": "8",
"creationTime": "1376533497018",
"lastModifiedTime": "1376534761629"
}
Tables.list()
The Tables.list() method returns the list of tables in a dataset. If there
are more results than can be comfortably returned in a single response,
you can use the paging mechanisms described earlier in the chapter to
page through the results. Tables.list() , like Datasets.list() , is
eventually consistent with respect to recently added tables. That is, if you
add a table and immediately call Tables.list() , you might not see it. If
you call Tables.get() , however, you always see the table if it exists.
Search WWH ::




Custom Search