Skip to content

Commit

Permalink
Add query tx modes to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Sep 10, 2024
1 parent 3f81746 commit 2714e5a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions docs/apireference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,39 @@ QueryTxContext (AsyncIO)
:undoc-members:


Query Tx Mode
^^^^^^^^^^^^^

.. autoclass:: ydb.BaseQueryTxMode
:members:
:inherited-members:
:undoc-members:


.. autoclass:: ydb.QueryOnlineReadOnly
:members:
:inherited-members:
:undoc-members:


.. autoclass:: ydb.QuerySerializableReadWrite
:members:
:inherited-members:
:undoc-members:


.. autoclass:: ydb.QuerySnapshotReadOnly
:members:
:inherited-members:
:undoc-members:


.. autoclass:: ydb.QueryStaleReadOnly
:members:
:inherited-members:
:undoc-members:


------------------------

Table Service
Expand Down
4 changes: 3 additions & 1 deletion ydb/query/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
__all__ = [
"BaseQueryTxMode",
"QueryOnlineReadOnly",
"QuerySerializableReadWrite",
"QuerySnapshotReadOnly",
"QueryStaleReadOnly",
"QuerySessionPool",
"QueryClientSync",
"QueryClientSettings",
"QuerySession",
"QueryTxContext",
]
Expand All @@ -20,6 +21,7 @@

from .._grpc.grpcwrapper import common_utils
from .._grpc.grpcwrapper.ydb_query_public_types import (
BaseQueryTxMode,
QueryOnlineReadOnly,
QuerySerializableReadWrite,
QuerySnapshotReadOnly,
Expand Down

0 comments on commit 2714e5a

Please sign in to comment.