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

[DOCS-2823] README: Remove class names in method refs #185

Merged
merged 1 commit into from
Jun 25, 2024
Merged
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
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ client = Client(http_idle_timeout=timedelta(seconds=6))
```

> **Note**
> Your application process may continue executing after all requests are completed for the duration of the session idle timeout. To prevent this, it is recommended to call ``Client.close()`` once all requests are complete. It is not recommended to set ``http_idle_timeout`` to small values.
> Your application process may continue executing after all requests are completed for the duration of the session idle timeout. To prevent this, it is recommended to call ``close()`` once all requests are complete. It is not recommended to set ``http_idle_timeout`` to small values.

### Connect Timeout

Expand Down Expand Up @@ -247,12 +247,12 @@ except ServiceError as e:

## Pagination

Use the ``Client.paginate()`` method to iterate sets that contain more than one
Use the ``paginate()`` method to iterate sets that contain more than one
page of results.

``Client.paginate()`` accepts the same query options as ``Client.query()``.
``paginate()`` accepts the same query options as ``query()``.

Change the default items per page using FQL's ``<set>.pageSize()`` method.
Change the default items per page using FQL's ``pageSize()`` method.

```python
from datetime import timedelta
Expand Down Expand Up @@ -289,7 +289,7 @@ To get a stream token, append ``toStream()`` or ``changesOn()`` to a set from a


To start and subscribe to the stream, pass the stream token to
``Client.stream()``:
``stream()``:

```python
from fauna import fql
Expand All @@ -312,7 +312,7 @@ To start and subscribe to the stream, pass the stream token to
```

You can also pass a query that produces a stream token directly to
``Client.stream()``:
``stream()``:

```python
query = fql('Product.all().changesOn(.price, .quantity)')
Expand All @@ -322,7 +322,7 @@ You can also pass a query that produces a stream token directly to

### Iterate on a stream

``Client.stream()`` returns an iterator that emits events as they occur. You can
``stream()`` returns an iterator that emits events as they occur. You can
use a generator expression to iterate through the events:

```python
Expand All @@ -344,7 +344,7 @@ with client.stream(query) as stream:

### Close a stream

Use ``<stream>.close()`` to close a stream:
Use ``close()`` to close a stream:

```python
query = fql('Product.all().changesOn(.price, .quantity)')
Expand Down Expand Up @@ -384,7 +384,7 @@ except FaunaException as e:
```
### Stream options

The client configuration sets default options for the ``Client.stream()``
The client configuration sets default options for the ``stream()``
method.

You can pass a ``StreamOptions`` object to override these defaults:
Expand Down
Loading