44
55class Feature (Enum ):
66 # === FUNCTIONAL FEATURES ===
7+ # The driver offers a configuration option to limit time it spends at most,
8+ # trying to acquire a connection from the pool.
9+ # The connection acquisition timeout must account for the whole acquisition
10+ # execution time, whether a new connection is created, an idle connection
11+ # is picked up instead or we need to wait until the full pool depletes.
12+ API_CONNECTION_ACQUISITION_TIMEOUT = \
13+ "Feature:API:ConnectionAcquisitionTimeout"
714 # The driver offers a method for driver objects to report if they were
815 # configured with a or without encryption.
916 API_DRIVER_IS_ENCRYPTED = "Feature:API:Driver.IsEncrypted"
17+ # The driver supports connection liveness check.
18+ API_LIVENESS_CHECK = "Feature:API:Liveness.Check"
1019 # The driver offers a method for the result to return all records as a list
1120 # or array. This method should exhaust the result.
1221 API_RESULT_LIST = "Feature:API:Result.List"
@@ -18,8 +27,13 @@ class Feature(Enum):
1827 # This methods asserts that exactly one record in left in the result
1928 # stream, else it will raise an exception.
2029 API_RESULT_SINGLE = "Feature:API:Result.Single"
21- # The driver supports connection liveness check.
22- API_LIVENESS_CHECK = "Feature:API:Liveness.Check"
30+ # The driver offers a configuration option to limit time it spends at most,
31+ # trying to acquire a usable read/write connection for any session.
32+ # The connection acquisition timeout must account for the whole acquisition
33+ # execution time, whether a new connection is created, an idle connection
34+ # is picked up instead, we need to wait until the full pool depletes, or
35+ # a routing table must be fetched.
36+ API_SESSION_CONNECTION_TIMEOUT = "Feature:API:SessionConnectionTimeout"
2337 # The driver implements explicit configuration options for SSL.
2438 # - enable / disable SSL
2539 # - verify signature against system store / custom cert / not at all
@@ -29,6 +43,9 @@ class Feature(Enum):
2943 # ...+s: enforce SSL + verify server's signature with system's trust store
3044 # ...+ssc: enforce SSL but do not verify the server's signature at all
3145 API_SSL_SCHEMES = "Feature:API:SSLSchemes"
46+ # The driver offers a configuration option to limit time it spends at most,
47+ # trying to update the routing table whenever needed.
48+ API_UPDATE_ROUTING_TABLE_TIMEOUT = "Feature:API:UpdateRoutingTableTimeout"
3249 # The driver supports single-sign-on (SSO) by providing a bearer auth token
3350 # API.
3451 AUTH_BEARER = "Feature:Auth:Bearer"
0 commit comments