Skip to content

Commit

Permalink
Fix DSN parsing when creating connection (#90)
Browse files Browse the repository at this point in the history
- Use regex to validate DSN and extract parts
- Add `ConfigUtils.ResolvedField<T>` which represents a connection property which may have an associated error
- Add `EdgeDBConnection._FromResolvedFields`
    - Performs final validation
    - Raises any errors from properties if present
    - Constructs a valid connection object
- Moves `ParseWaitUntilAvailable` to `ConfigUtils`
  • Loading branch information
dnwpark authored Jan 29, 2025
1 parent 33388b8 commit fdbf4fa
Show file tree
Hide file tree
Showing 3 changed files with 564 additions and 273 deletions.
Loading

0 comments on commit fdbf4fa

Please sign in to comment.