feat(dbapi): add retry_aborts_internally option to Connection by waiho-gumloop · Pull Request #16498 · googleapis/google-cloud-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

Add a retry_aborts_internally flag to the DBAPI Connection class and
the connect() function. When set to False, aborted transactions raise
RetryAborted directly from commit() instead of entering the internal
statement-replay retry loop.

This aligns with RETRY_ABORTS_INTERNALLY in the Spanner JDBC driver
and avoids nested retry loops when the application manages its own
transaction retry logic.

Fixes googleapis#16491

gemini-code-assist[bot]