We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa806c4 commit db62c3aCopy full SHA for db62c3a
ydb/_grpc/grpcwrapper/ydb_query.py
@@ -81,6 +81,7 @@ def to_proto(self) -> ydb_query_pb2.TransactionSettings:
81
return ydb_query_pb2.TransactionSettings(stale_read_only=self.tx_mode.to_proto())
82
if self.tx_mode.name == "snapshot_read_write":
83
return ydb_query_pb2.TransactionSettings(snapshot_read_write=self.tx_mode.to_proto())
84
+ raise ValueError(f"Unknown transaction mode: {self.tx_mode.name}")
85
86
87
@dataclass
0 commit comments