Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for database URLs #196

Merged
merged 2 commits into from
Jun 27, 2023
Merged

Conversation

mikerockett
Copy link
Contributor

Adds basic support for database URLs, or DSNs. It does so via the addition of a DSN parser that is derived from the one Laravel provides (it's a simplified version that only works with strings).

Resolves #195.

Note: Tests were failing due to the recent addition of quoted usernames in PostgreSql – these have also been fixed. There was also test case in PostgreSqlTest that was seemingly copied over from MySqlTest, in that it included a reference to the credentials text file – this has been corrected as well.

@freekmurze freekmurze merged commit 4918ddc into spatie:main Jun 27, 2023
7 checks passed
@freekmurze
Copy link
Member

Very nice, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants