You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
114
+
115
+
```python
116
+
# Get appspot tables falling within a start and end time.
117
+
from datetime import datetime, timedelta
118
+
range_end = datetime.utcnow()
119
+
range_start = range_end - timedelta(weeks=12)
120
+
tables = client.get_tables('dataset', 'appid',
121
+
calendar.timegm(range_start.timetuple()),
122
+
calendar.timegm(range_end.timetuple()))
123
+
```
124
+
113
125
# Inserting Data
114
126
115
-
The client also provides an API for inserting data into a BigQuery table.
127
+
The client provides an API for inserting data into a BigQuery table.
0 commit comments