Skip to content

feat: Add cx_oceanbase driver support#21

Merged
yuanoOo merged 1 commit intooceanbase:mainfrom
yuanoOo:cx_oceanbase
Sep 24, 2025
Merged

feat: Add cx_oceanbase driver support#21
yuanoOo merged 1 commit intooceanbase:mainfrom
yuanoOo:cx_oceanbase

Conversation

@yuanoOo
Copy link
Copy Markdown
Contributor

@yuanoOo yuanoOo commented Sep 24, 2025

Description

This PR adds cx_oceanbase driver support to the OceanBase SQLAlchemy plugin with SQLAlchemy 2.x compatibility.

Key Changes

  • Add cx_oceanbase driver support
  • Implement SQLAlchemy 2.x compatibility
  • Add supports_statement_cache = True for better performance
  • Implement import_dbapi and dbapi methods
  • Upgrade version from 0.2.0 to 0.3.0

Technical Details

  • Added SQLAlchemy 2.x compatibility support in cx_oceanbase.py
  • Implemented standard import_dbapi and dbapi methods
  • Added statement cache support for better performance
  • Maintained backward compatibility

Testing

  • Tested SQLAlchemy 1.3.x compatibility
  • Tested SQLAlchemy 2.x compatibility
  • Tested cx_oceanbase driver connection

- Add cx_oceanbase driver support in OceanBase SQLAlchemy plugin
- Implement SQLAlchemy 2.x compatibility for cx_oceanbase driver
- Add supports_statement_cache = True for better performance
- Implement import_dbapi and dbapi methods for cx_oceanbase
- Upgrade version from 0.2.0 to 0.3.0
@yuanoOo yuanoOo merged commit 6f2abf6 into oceanbase:main Sep 24, 2025
6 checks passed
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.

1 participant