Skip to content

Commit d9e9ac7

Browse files
committed
document get_table
1 parent 2e3509f commit d9e9ac7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ job_id, _ = client.query(query)
135135

136136
# Managing Tables
137137

138-
The BigQuery client provides facilities to manage dataset tables, including creating, deleting, and checking the existence of tables.
138+
The BigQuery client provides facilities to manage dataset tables, including creating, deleting, checking the existence, and getting the metadata of tables.
139139

140140
```python
141141
# Create a new table.
@@ -150,6 +150,10 @@ deleted = client.delete_table('dataset', 'my_table')
150150

151151
# Check if a table exists.
152152
exists = client.check_table('dataset', 'my_table')
153+
154+
# Get a table's full metadata. Includes numRows, numBytes, etc.
155+
# See: https://cloud.google.com/bigquery/docs/reference/rest/v2/tables
156+
metadata = client.get_table('dataset', 'my_table')
153157
```
154158

155159
There is also functionality for retrieving tables that are associated with a Google App Engine appspot, assuming table names are in the form of appid_YYYY_MM or YYYY_MM_appid. This allows tables between a date range to be selected and queried on.

0 commit comments

Comments
 (0)