From 0abe50bc5459697cd95f0ad1ee5f50f71fca8d15 Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Tue, 10 Sep 2024 18:09:37 +0300 Subject: [PATCH] small fixes --- docs/apireference.rst | 1 + docs/overview.rst | 6 +----- ydb/_grpc/grpcwrapper/ydb_query_public_types.py | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/apireference.rst b/docs/apireference.rst index 52cf78a4..1d6a2821 100644 --- a/docs/apireference.rst +++ b/docs/apireference.rst @@ -60,6 +60,7 @@ RetrySettings :inherited-members: :undoc-members: + Result Sets ^^^^^^^^^^^ diff --git a/docs/overview.rst b/docs/overview.rst index 4313b91c..81abf94d 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -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 `_. -* **RU** `YDB chat `_. - +You can ask your questions in official Telegram chats: `EN `_ | `RU `_. Bugs and feature enhancements to YDB Python SDK should be reported on the `GitHub issue tracker diff --git a/ydb/_grpc/grpcwrapper/ydb_query_public_types.py b/ydb/_grpc/grpcwrapper/ydb_query_public_types.py index 23c3c4f9..9888a677 100644 --- a/ydb/_grpc/grpcwrapper/ydb_query_public_types.py +++ b/ydb/_grpc/grpcwrapper/ydb_query_public_types.py @@ -12,6 +12,7 @@ class BaseQueryTxMode(IToProto): """Abstract class for Query Transaction Modes.""" + @property @abc.abstractmethod def name(self) -> str: @@ -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" @@ -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"