Skip to content
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
4 changes: 4 additions & 0 deletions ydb/_grpc/grpcwrapper/ydb_query_public_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def __init__(self, allow_inconsistent_reads: bool = False):
def name(self):
return self._name

def with_allow_inconsistent_reads(self) -> "QueryOnlineReadOnly":
self.allow_inconsistent_reads = True
return self

def to_proto(self) -> ydb_query_pb2.OnlineModeSettings:
return ydb_query_pb2.OnlineModeSettings(allow_inconsistent_reads=self.allow_inconsistent_reads)

Expand Down
Loading