Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ users may find useful:
libraries like Shapely.
* `version`: one of the WherobotsDB runtime versions that is available
to you, if you need to pin your usage to a particular, supported
WherobotsDB version. Defaults to `"latest"`.
WherobotsDB version. Defaults to the latest, most-optimized version
of WherobotsDB available to your subscription.
* `session_type`: `"single"` or `"multi"`; if set to `"single"`, then
each call to `connect()` establishes an exclusive connection to a
distinct and dedicated Wherobots runtime; if set to "multi", then
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wherobots-python-dbapi"
version = "0.21.0"
version = "0.22.0"
description = "Python DB-API driver for Wherobots DB"
authors = [{ name = "Maxime Petazzoni", email = "[email protected]" }]
requires-python = ">=3.8, <4"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion wherobots/db/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

DEFAULT_RUNTIME: Runtime = Runtime.TINY
DEFAULT_REGION: Region = Region.AWS_US_WEST_2
DEFAULT_VERSION: str = "latest"
DEFAULT_SESSION_TYPE: SessionType = SessionType.MULTI
DEFAULT_READ_TIMEOUT_SECONDS: float = 0.25
DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS: float = 900
Expand Down
6 changes: 2 additions & 4 deletions wherobots/db/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
DEFAULT_READ_TIMEOUT_SECONDS,
DEFAULT_SESSION_TYPE,
DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS,
DEFAULT_VERSION,
MAX_MESSAGE_SIZE,
PARAM_STYLE,
PROTOCOL_VERSION,
Expand Down Expand Up @@ -88,14 +87,13 @@ def connect(
host = host or DEFAULT_ENDPOINT
runtime = runtime or DEFAULT_RUNTIME
region = region or DEFAULT_REGION
version = version or DEFAULT_VERSION
session_type = session_type or DEFAULT_SESSION_TYPE

logging.info(
"Requesting %s%s runtime running %s in %s from %s ...",
"Requesting %s%s runtime %sin %s from %s ...",
"new " if force_new else "",
runtime.value,
version,
f"running {version} " if version else "",
region.value,
host,
)
Expand Down