Skip to content

test(runtime-sdk): test aiomysql and psycopg + hyperdrive - #247

Open
ryanking13 wants to merge 2 commits into
mainfrom
gyeongjae/aiomysql
Open

test(runtime-sdk): test aiomysql and psycopg + hyperdrive#247
ryanking13 wants to merge 2 commits into
mainfrom
gyeongjae/aiomysql

Conversation

@ryanking13

Copy link
Copy Markdown
Contributor

Adds a smoke test for aiomysql and psycopg which are also famous Python database drivers.


assert psycopg.pq.__impl__ == "c"
hd = env.HYPERDRIVE_PG
with psycopg.connect(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

psycopg support async queries as well, but it doesn't work in Python workers. It needs more investigation.

Comment thread packages/cli/src/pywrangler/utils.py
Comment thread packages/runtime-sdk/tests/bindings-test/pyproject.toml Outdated
@ask-bonk

ask-bonk Bot commented Sep 7, 2026

Copy link
Copy Markdown

I'm Bonk, and I've done a quick review of your PR.

Adds aiomysql and psycopg Hyperdrive smoke tests.

  1. P1: One actionable inline suggestion posted for the dependency-marker regression.

github run

Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants