wherobots-python-dbapi 0.5.2__tar.gz → 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wherobots-python-dbapi
3
- Version: 0.5.2
3
+ Version: 0.6.0
4
4
  Summary: Python DB-API driver for Wherobots DB
5
5
  License: Apache 2.0
6
6
  Author: Maxime Petazzoni
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wherobots-python-dbapi"
3
- version = "0.5.2"
3
+ version = "0.6.0"
4
4
  description = "Python DB-API driver for Wherobots DB"
5
5
  authors = ["Maxime Petazzoni <max@wherobots.com>"]
6
6
  license = "Apache 2.0"
@@ -132,7 +132,9 @@ class Connection:
132
132
  if query.state == ExecutionState.SUCCEEDED:
133
133
  self.__request_results(execution_id)
134
134
  elif query.state == ExecutionState.FAILED:
135
- query.handler(OperationalError("Query execution failed"))
135
+ # Don't do anything here; the ERROR event is coming with more
136
+ # details.
137
+ pass
136
138
 
137
139
  elif kind == EventKind.EXECUTION_RESULT:
138
140
  results = message.get("results")
@@ -10,7 +10,7 @@ STAGING_ENDPOINT: str = "api.staging.wherobots.com" # "api.staging.wherobots.co
10
10
  DEFAULT_RUNTIME: Runtime = Runtime.SEDONA
11
11
  DEFAULT_REGION: Region = Region.AWS_US_WEST_2
12
12
  DEFAULT_READ_TIMEOUT_SECONDS: float = 0.25
13
- DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS: float = 300
13
+ DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS: float = 900
14
14
  MAX_MESSAGE_SIZE: int = 100 * 2**20 # 100MiB
15
15
  PROTOCOL_VERSION: str = "1.0.0"
16
16