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 0abe50b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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
3 changes: 3 additions & 0 deletions ydb/_grpc/grpcwrapper/ydb_query_public_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

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

@property
@abc.abstractmethod
def name(self) -> str:
Expand All @@ -23,6 +24,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 +40,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 0abe50b

Please sign in to comment.