Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Sep 10, 2024
1 parent 1dbbd3f commit 05a3ae3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/apireference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RetrySettings
:inherited-members:
:undoc-members:


Result Sets
^^^^^^^^^^^

Expand Down
6 changes: 1 addition & 5 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ The most recent published version of this documentation should be at https://ydb
Community
---------

You can ask your questions in official Telegram chats:

* **EN** `YDB chat <https://t.me/ydb_en>`_.
* **RU** `YDB chat <https://t.me/ydb_ru>`_.

You can ask your questions in official Telegram chats: `EN <https://t.me/ydb_en>`_ | `RU <https://t.me/ydb_ru>`_.

Bugs and feature enhancements to YDB Python SDK should be reported on the `GitHub
issue tracker
Expand Down
6 changes: 5 additions & 1 deletion ydb/_grpc/grpcwrapper/ydb_query_public_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@


class BaseQueryTxMode(IToProto):
"""Abstract class for Query Transaction Modes."""
"""Abstract class for Query Transaction Modes.
"""

@property
@abc.abstractmethod
def name(self) -> str:
Expand All @@ -23,6 +25,7 @@ class QuerySnapshotReadOnly(BaseQueryTxMode):
All the data reads are consistent. The snapshot is taken when the transaction begins,
meaning the transaction sees all changes committed before it began.
"""

def __init__(self):
self._name = "snapshot_read_only"

Expand All @@ -38,6 +41,7 @@ class QuerySerializableReadWrite(BaseQueryTxMode):
"""This mode guarantees that the result of successful parallel transactions is equivalent
to their serial execution, and there are no read anomalies for successful transactions.
"""

def __init__(self):
self._name = "serializable_read_write"

Expand Down

0 comments on commit 05a3ae3

Please sign in to comment.