Skip to content

Commit 12fb2f3

Browse files
Update README to match current preferred behavior
1 parent 545d0eb commit 12fb2f3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ To specify location of your datasets pass ``location`` to ``create_engine()``:
5454
Table names
5555
___________
5656

57-
To query tables from non-default projects, use the following format for the table name: ``project.dataset.table``, e.g.:
57+
To query tables from non-default projects or datasets, use the following format for the SQLAlchemy schema name: ``[project.]dataset``, e.g.:
5858

5959
.. code-block:: python
6060
61-
sample_table = Table('bigquery-public-data.samples.natality')
61+
# If neither dataset nor project are the default
62+
sample_table_1 = Table('natality', schema='bigquery-public-data.samples')
63+
# If just dataset is not the default
64+
sample_table_2 = Table('natality', schema='bigquery-public-data')
6265
6366
Batch size
6467
__________
@@ -85,7 +88,7 @@ When using a default dataset, don't include the dataset name in the table name,
8588
8689
table = Table('table_name')
8790
88-
Note that specyfing a default dataset doesn't restrict execution of queries to that particular dataset when using raw queries, e.g.:
91+
Note that specifying a default dataset doesn't restrict execution of queries to that particular dataset when using raw queries, e.g.:
8992

9093
.. code-block:: python
9194

0 commit comments

Comments
 (0)