Skip to content

Commit

Permalink
Support the gel:// dsn protocol (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan authored Nov 21, 2024
1 parent e1c5457 commit 84c533c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gel/con_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ def _parse_dsn_into_config(
except Exception as e:
raise ValueError(f'invalid DSN or instance name: {str(e)}')

if parsed.scheme != 'edgedb':
if parsed.scheme != 'edgedb' and parsed.scheme != 'gel':
raise ValueError(
f'invalid DSN: scheme is expected to be '
f'"edgedb", got {parsed.scheme!r}')
f'"edgedb" or "gel", got {parsed.scheme!r}')

query = (
urllib.parse.parse_qs(parsed.query, keep_blank_values=True)
Expand Down

0 comments on commit 84c533c

Please sign in to comment.