You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add get_cursor() method to database adapters
Add get_cursor() abstract method to DatabaseAdapter base class and implement
it in MySQLAdapter and PostgreSQLAdapter. This method provides backend-specific
cursor creation for both tuple and dictionary result sets.
Changes:
- DatabaseAdapter.get_cursor(connection, as_dict=False) abstract method
- MySQLAdapter.get_cursor() returns pymysql.cursors.Cursor or DictCursor
- PostgreSQLAdapter.get_cursor() returns psycopg2 cursor or RealDictCursor
This is part of Phase 4: Integrating adapters into the Connection class.
All mypy checks passing.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments