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 f85a092 commit d938c50Copy full SHA for d938c50
python/psqlpy/_internal/__init__.pyi
@@ -108,9 +108,19 @@ class ConnLoadBalanceHosts(Enum):
108
"""Load balancing configuration."""
109
110
# Make connection attempts to hosts in the order provided.
111
- Disable = (1,)
+ Disable = 1
112
# Make connection attempts to hosts in a random order.
113
- Random = (2,)
+ Random = 2
114
+
115
+class ConnTargetSessionAttrs(Enum):
116
+ """Properties required of a session."""
117
118
+ # No special properties are required.
119
+ Any = 1
120
+ # The session must allow writes.
121
+ ReadWrite = 2
122
+ # The session allow only reads.
123
+ ReadOnly = 3
124
125
class ReadVariant(Enum):
126
"""Class for Read Variant for transaction."""
0 commit comments