-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add connect_args support to DatabaseConfig #784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add optional connect_args field to DatabaseConfig for passing driver-specific connection arguments directly to SQLAlchemy's create_engine/create_async_engine. Changes: - Added connect_args field to DatabaseConfig model with default value {} - Updated BaseSQLClient.load() to use DB_CONFIG.connect_args instead of instance attribute - Updated AsyncBaseSQLClient.load() to use DB_CONFIG.connect_args - Removed sql_alchemy_connect_args parameter from client constructors Signed-off-by: inishchith <[email protected]>
📜 Docstring Coverage ReportRESULT: PASSED (minimum: 30.0%, actual: 75.4%) Detailed Coverage Report
|
📦 Trivy Vulnerability Scan Results
Report Summary
Scan Result Details✅ No vulnerabilities found during the scan for |
📦 Trivy Secret Scan Results
Report Summary
Scan Result Details✅ No secrets found during the scan for |
🛠 Docs available at: https://k.atlan.dev/application-sdk/feat/support-connect-args |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/784 |
📦 Example workflows test results
|
📦 Example workflows test results
|
📦 Example workflows test results
|
Changelog
Note
Adds connect_args to DatabaseConfig and uses DB_CONFIG.connect_args when creating SQLAlchemy engines; enforces DB_CONFIG presence; updates docs and tests.
DB_CONFIG.connect_args
forcreate_engine
/create_async_engine
instead ofsql_alchemy_connect_args
.sql_alchemy_connect_args
attribute/constructor param and references.DB_CONFIG
is set inload()
for both sync and async clients.DatabaseConfig
withconnect_args: Dict[str, Any]
.parameters
description with connection-string example.connect_args
inDB_CONFIG
and example usage.DB_CONFIG
and assertconnect_args
propagation.DB_CONFIG.connect_args
.Written by Cursor Bugbot for commit 59d3ee8. This will update automatically on new commits. Configure here.
Additional context (e.g. screenshots, logs, links)
Checklist
Copyleft License Compliance