Skip to content

feat(db): normalize Postgres URLs to use psycopg v3 driver - #3

Merged
jattanjie21 merged 1 commit into
mainfrom
railway-deploy
May 3, 2026
Merged

jattanjie21 merged 1 commit into
mainfrom
railway-deploy

Conversation

@jattanjie21

Copy link
Copy Markdown
Owner
  • Added a new function _normalise_postgres_url to convert legacy Postgres URLs (postgres:// and postgresql://) to the appropriate format for the psycopg v3 driver.
  • Updated create_engine_from_url to utilize the normalization function for Postgres URLs.
  • Added unit tests to ensure correct normalization behavior for various Postgres URL formats.

- Added a new function `_normalise_postgres_url` to convert legacy Postgres URLs (`postgres://` and `postgresql://`) to the appropriate format for the psycopg v3 driver.
- Updated `create_engine_from_url` to utilize the normalization function for Postgres URLs.
- Added unit tests to ensure correct normalization behavior for various Postgres URL formats.
@jattanjie21
jattanjie21 merged commit a4e9173 into main May 3, 2026
1 check 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