wherobots-python-dbapi 0.12.0__tar.gz → 0.12.1__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.12.0
3
+ Version: 0.12.1
4
4
  Summary: Python DB-API driver for Wherobots DB
5
5
  License: Apache 2.0
6
6
  Author: Maxime Petazzoni
@@ -110,10 +110,10 @@ users may find useful:
110
110
  convenient for human inspection while still being usable by
111
111
  libraries like Shapely.
112
112
  * `session_type`: `"single"` or `"multi"`; if set to `"single"`, then each call
113
- to `Connection.connect()` establishes an exclusive connection to a
114
- Wherobots runtime; if set to "multi", then multiple `Connection.connect()`
115
- calls with the same arguments and credentials will connect to the same
116
- shared Wherobots runtime; `"single"` is the default.
113
+ to `connect()` establishes an exclusive connection to a distinct and dedicated
114
+ Wherobots runtime; if set to "multi", then multiple `connect()` calls with the
115
+ same arguments and credentials will connect to the same shared Wherobots runtime;
116
+ `"single"` is the default.
117
117
 
118
118
  Consider multi-session for potential cost savings, but be mindful of
119
119
  performance impacts from shared resources. You might need to adjust
@@ -82,10 +82,10 @@ users may find useful:
82
82
  convenient for human inspection while still being usable by
83
83
  libraries like Shapely.
84
84
  * `session_type`: `"single"` or `"multi"`; if set to `"single"`, then each call
85
- to `Connection.connect()` establishes an exclusive connection to a
86
- Wherobots runtime; if set to "multi", then multiple `Connection.connect()`
87
- calls with the same arguments and credentials will connect to the same
88
- shared Wherobots runtime; `"single"` is the default.
85
+ to `connect()` establishes an exclusive connection to a distinct and dedicated
86
+ Wherobots runtime; if set to "multi", then multiple `connect()` calls with the
87
+ same arguments and credentials will connect to the same shared Wherobots runtime;
88
+ `"single"` is the default.
89
89
 
90
90
  Consider multi-session for potential cost savings, but be mindful of
91
91
  performance impacts from shared resources. You might need to adjust
@@ -3,7 +3,7 @@ name = "wherobots-python-dbapi"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "wherobots-python-dbapi"
6
- version = "0.12.0"
6
+ version = "0.12.1"
7
7
  description = "Python DB-API driver for Wherobots DB"
8
8
  authors = ["Maxime Petazzoni <max@wherobots.com>"]
9
9
  license = "Apache 2.0"
@@ -100,10 +100,11 @@ def connect(
100
100
  try:
101
101
  resp = requests.post(
102
102
  url=f"{host}/sql/session",
103
- params={"region": region.value, "sessionType": session_type.value},
103
+ params={"region": region.value},
104
104
  json={
105
105
  "runtimeId": runtime.value,
106
106
  "shutdownAfterInactiveSeconds": shutdown_after_inactive_seconds,
107
+ "sessionType": session_type.value,
107
108
  },
108
109
  headers=headers,
109
110
  )