[BUG]: `dbCredentials.ssl` is not working while introspecting
Problem
What version of `drizzle-orm` are you using? 0.27.0 What version of `drizzle-kit` are you using? 0.19.2 Describe the Bug The `ssl` option is not working while running introspect, [code block] My current workaround is, [code block] Expected behavior _No response_ Environment & setup _No response_
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix SSL Configuration for Drizzle ORM Introspection
The `ssl` option in the `dbCredentials` is not being correctly passed to the database connection during the introspection process in the specified versions of `drizzle-orm` and `drizzle-kit`. This could be due to a misconfiguration in the connection settings or a bug in the library that fails to handle SSL options properly.
Awaiting Verification
Be the first to verify this fix
- 1
Update Drizzle ORM and Drizzle Kit
Check for any available updates for both `drizzle-orm` and `drizzle-kit` that may address this issue. Update to the latest compatible versions to ensure any bug fixes are applied.
bashnpm install drizzle-orm@latest drizzle-kit@latest - 2
Verify SSL Configuration
Ensure that the SSL configuration is correctly set in your `dbCredentials`. The `ssl` option should be an object with the necessary parameters for your database connection.
typescriptconst dbCredentials = { ssl: { rejectUnauthorized: false } }; - 3
Test Introspection with SSL
Run the introspection command again to check if the SSL option is now being recognized. Monitor the output for any SSL-related errors.
bashdrizzle-kit introspect --config dbCredentials - 4
Check for Open Issues
Visit the GitHub repository for `drizzle-orm` and `drizzle-kit` to check for any open issues related to SSL configuration. If the problem persists, consider filing a new issue with detailed information.
markdownhttps://github.com/drizzle-team/drizzle-orm/issues
Validation
Confirm that the introspection process completes successfully without SSL errors. If errors persist, check the connection logs for details on SSL negotiation.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep