Skip to content

Conversation

@AxiosLeo
Copy link
Owner

@AxiosLeo AxiosLeo commented Dec 19, 2025

… both callback and promise-based MySQL connection pools


Note

Updates beginTransaction to detect mysql2 pool type and acquire a connection appropriately, converting to promise-based when needed.

  • Operator (src/operator.js):
    • Transaction handling (QueryHandler.beginTransaction):
      • Detects pool type (Pool vs PromisePool) via promise() presence.
      • For callback pools: wraps getConnection in a Promise and converts connection with conn.promise().
      • For promise pools: directly awaits getConnection().
      • Retains pool-connection release on commit/rollback.

Written by Cursor Bugbot for commit 00ac303. This will update automatically on new commits. Configure here.

… both callback and promise-based MySQL connection pools
@AxiosLeo AxiosLeo changed the title fix(operator): enhance connection handling in QueryHandler to support… fix(operator): enhance connection handling in QueryHandler Dec 19, 2025
@AxiosLeo AxiosLeo merged commit 058ea6d into main Dec 19, 2025
13 checks passed
@AxiosLeo AxiosLeo deleted the fix/transaction branch December 19, 2025 08:09
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