Skip to content

Commit a1a49da

Browse files
authored
Merge pull request #504 from ydb-platform/fix_online_readonly
Add build method to QueryOnlineReadOnly mode
2 parents de53d9b + d52cc61 commit a1a49da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/_grpc/grpcwrapper/ydb_query_public_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def __init__(self, allow_inconsistent_reads: bool = False):
7070
def name(self):
7171
return self._name
7272

73+
def with_allow_inconsistent_reads(self) -> "QueryOnlineReadOnly":
74+
self.allow_inconsistent_reads = True
75+
return self
76+
7377
def to_proto(self) -> ydb_query_pb2.OnlineModeSettings:
7478
return ydb_query_pb2.OnlineModeSettings(allow_inconsistent_reads=self.allow_inconsistent_reads)
7579

0 commit comments

Comments
 (0)