Skip to content

Commit

Permalink
Add gel as a valid dsn scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwpark committed Nov 27, 2024
1 parent 0b17d5c commit 63ff6d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/connutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1209,9 +1209,9 @@ func parseDSN(dsn string) (*url.URL, map[string]string, error) {
return nil, nil, fmt.Errorf("could not parse DSN %q: %w", dsn, err)
}

if uri.Scheme != "edgedb" {
if uri.Scheme != "edgedb" && uri.Scheme != "gel" {
return nil, nil, fmt.Errorf(
`scheme is expected to be "edgedb", got %q`, uri.Scheme)
`scheme is expected to be "edgedb" or "gel", got %q`, uri.Scheme)
}

query, err := url.ParseQuery(uri.RawQuery)
Expand Down

0 comments on commit 63ff6d3

Please sign in to comment.