Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop fossil docs refs to 'read_streaming'/'execute_streaming_sql'. #3276

Merged
merged 1 commit into from
Apr 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 1 addition & 39 deletions docs/spanner-session-implicit-txn-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,10 @@ fails if the result set is too large,
for row in result.rows:
print(row)


Read Streaming Table Data
-------------------------

Read data for selected rows from a table in the session's database. Calls
the ``StreamingRead`` API, which returns partial result sets.
:meth:`Session.streaming_read` coalesces these partial result sets as its
result object's rows are iterated.

.. code:: python

result = session.read_streaming(
table='table-name', columns=['first_name', 'last_name', 'age'],
key_set=VERY_LONG_LIST_OF_KEYS)

for row in result.rows:
print(row)

.. note::

If streaming a chunk fails due to a "resumable" error,
:meth:`Session.read_streaming` retries the ``StreamingRead`` API reqeust,
:meth:`Session.read` retries the ``StreamingRead`` API reqeust,
passing the ``resume_token`` from the last partial result streamed.


Expand All @@ -66,26 +48,6 @@ fails if the result set is too large,
print(row)


Execute a Streaming SQL Select Statement
----------------------------------------

Read data a query against tables in the session's database. Calls
the ``ExecuteStreamingSql`` API, which returns partial result sets.
:meth:`Session.execute_streaming_sql` coalesces these partial result sets as
its result object's rows are iterated.

.. code:: python

QUERY = (
'SELECT e.first_name, e.last_name, p.telephone '
'FROM employees as e, phones as p '
'WHERE p.employee_id == e.employee_id')
result = session.execute_streaming_sql(QUERY)

for row in result.rows:
print(row)


Next Step
---------

Expand Down
40 changes: 1 addition & 39 deletions docs/spanner-snapshot-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,10 @@ fails if the result set is too large,
for row in result.rows:
print(row)


Read Streaming Table Data
-------------------------

Read data for selected rows from a table in the session's database. Calls
the ``StreamingRead`` API, which returns partial result sets.
:meth:`Session.streaming_read` coalesces these partial result sets as its
result object's rows are iterated.

.. code:: python

result = snapshot.read_streaming(
table='table-name', columns=['first_name', 'last_name', 'age'],
key_set=VERY_LONG_LIST_OF_KEYS)

for row in result.rows:
print(row)

.. note::

If streaming a chunk fails due to a "resumable" error,
:meth:`Session.read_streaming` retries the ``StreamingRead`` API reqeust,
:meth:`Session.read` retries the ``StreamingRead`` API reqeust,
passing the ``resume_token`` from the last partial result streamed.


Expand All @@ -96,26 +78,6 @@ fails if the result set is too large,
print(row)


Execute a Streaming SQL Select Statement
----------------------------------------

Read data a query against tables in the session's database. Calls
the ``ExecuteStreamingSql`` API, which returns partial result sets.
:meth:`Session.execute_streaming_sql` coalesces these partial result sets as
its result object's rows are iterated.

.. code:: python

QUERY = (
'SELECT e.first_name, e.last_name, p.telephone '
'FROM employees as e, phones as p '
'WHERE p.employee_id == e.employee_id')
result = snapshot.execute_streaming_sql(QUERY)

for row in result.rows:
print(row)


Next Step
---------

Expand Down
40 changes: 1 addition & 39 deletions docs/spanner-transaction-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,10 @@ fails if the result set is too large,
for row in result.rows:
print(row)


Read Streaming Table Data
-------------------------

Read data for selected rows from a table in the session's database. Calls
the ``StreamingRead`` API, which returns partial result sets.
:meth:`Session.streaming_read` coalesces these partial result sets as its
result object's rows are iterated.

.. code:: python

result = transaction.read_streaming(
table='table-name', columns=['first_name', 'last_name', 'age'],
key_set=VERY_LONG_LIST_OF_KEYS)

for row in result.rows:
print(row)

.. note::

If streaming a chunk fails due to a "resumable" error,
:meth:`Session.read_streaming` retries the ``StreamingRead`` API reqeust,
:meth:`Session.read` retries the ``StreamingRead`` API reqeust,
passing the ``resume_token`` from the last partial result streamed.


Expand All @@ -76,26 +58,6 @@ fails if the result set is too large,
print(row)


Execute a Streaming SQL Select Statement
----------------------------------------

Read data a query against tables in the session's database. Calls
the ``ExecuteStreamingSql`` API, which returns partial result sets.
:meth:`Session.execute_streaming_sql` coalesces these partial result sets as
its result object's rows are iterated.

.. code:: python

QUERY = (
'SELECT e.first_name, e.last_name, p.telephone '
'FROM employees as e, phones as p '
'WHERE p.employee_id == e.employee_id')
result = transaction.execute_streaming_sql(QUERY)

for row in result.rows:
print(row)


Insert records using a Transaction
----------------------------------

Expand Down