jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

Allow `currentSchema` option to be used with custom postgresql backends #243

Closed GertBurger closed 8 months ago

GertBurger commented 8 months ago

The previous check for currentSchema only matched on a specific list of postgresql compatible backends. This approach didn't allow for custom backends which may be assigned to the standard postgresql-like schemes.

This PR changes the lookup from the engine to the scheme, which also seems more in-line with the rest of the module.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (86f04ef) 100.00% compared to head (d6dbd82) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #243 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 75 76 +1 Branches 18 18 ========================================= + Hits 75 76 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.