Skip to content

Conversation

@cofin
Copy link
Member

@cofin cofin commented Nov 2, 2025

Refactor the paramter style configuration to be more consistent across all adapters.

cofin added 10 commits November 2, 2025 16:44
- Consolidated parameter configuration across DuckDB, OracleDB, Psqlpy, Psycopg, and SQLite drivers using DriverParameterProfile.
- Removed redundant parameter configuration code and replaced it with a unified profile approach.
- Enhanced type coercion mappings for various data types including bool, datetime, date, and Decimal.
- Implemented JSON serializer strategies for each driver profile.
- Updated the core parameters module to support driver profile registration and retrieval.
- Added tests to validate the new driver profile system and ensure proper handling of parameter serialization and overrides.
… transformers

- Added `_registry.py` to manage driver parameter profiles and configurations.
- Implemented functions to register and retrieve driver profiles.
- Created `_transformers.py` for AST transformation utilities, including handling null parameters and replacing placeholders with literals.
- Defined core parameter data structures in `_types.py`, including `DriverParameterProfile`, `ParameterStyle`, and `ParameterStyleConfig`.
- Introduced `_validator.py` for parameter extraction and validation, including regex for various parameter styles.
- Updated integration tests to utilize new AST transformation functions.
- Refactored unit tests to ensure compatibility with new parameter handling logic.
- Simplified the construction of asyncmy statement configuration by combining parameters into a single line.
- Introduced a module prefix for dynamically created test modules in CLI tests to avoid naming conflicts.
- Updated test cases to utilize the new module creation function, ensuring unique module names for each test.
- Upgraded the `psutil` package from version 7.1.2 to 7.1.3 and `starlette` from version 0.49.1 to 0.49.3, reflecting the latest versions in the lock file.
@cofin cofin merged commit 806571a into main Nov 3, 2025
9 of 10 checks passed
@cofin cofin deleted the feat/driver-quality-review branch November 3, 2025 01:57
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