Skip to content

mh.database: Add SafeMySQLConnection helper#140

Open
sepalani wants to merge 7 commits intodevfrom
mysql-reconnect
Open

mh.database: Add SafeMySQLConnection helper#140
sepalani wants to merge 7 commits intodevfrom
mysql-reconnect

Conversation

@sepalani
Copy link
Copy Markdown
Owner

@sepalani sepalani commented Mar 1, 2026

This PR is based on #139 and adds a MySQL reconnection helper class.

kbarkevich and others added 7 commits July 25, 2025 23:51
Other changes:
 - city.is_empty method added
 - assert_fields when searching cities fixed
 - workaround for cyclic import (wip)
Fix MaxThread option being ignored.

Remove unused legacy_ssl parameter.
Add some more type hints
Try to address several issues we have, as follows:
 - DRY principle
 - more documentation (docstrings, type-hints)
 - less `try..except` clutter and error silencing
 - more logging
 - unused variables removed
 - avoid RuntimeError while iterating+deleting items from a container
 - use SO_REUSEADDR to address some (not all) TIME_WAIT issues
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