-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support for DATABASE_URL #179
Comments
Could this have something to do with #159? |
no I don't think so, this also does not handle the url parameter |
EDIT: Actually this doesn't work. I believe this is the same issue as #101 Original message below:
Being sure your .env has the required properties |
Hi guys, is absolutly neccesary support DATABASE_URL param for connection with database, i am not able to establish connection with my database using the params listing like commented us @mr120 :( |
Hi @soulcodex, at the moment I won't be able to tackle this quickly. If you find a solution for this issue, you're welcome to open a PR. |
I will start to work with a PR with the Connection Factory based on regex capture for URL approach at least for relational databases like MySQL, PG and SQLITE See you soon |
@DonCallisto take a look at the changes I have for the package using DSN instead of a list of parameters, it only remains to test it and add the approach for SQLite. |
Please, produce a diff (for example with a draft PR) and when I'll have time, I'll try to take a look. |
first thx for the great tool.
I'm using the latest version 1.9.0
When i only set the URL in the .env:
DATABASE_URL=mysql://root:[email protected]/fwgshopmanager_test
I get following error:
[ErrorException] Notice: Undefined index: master
the params array which comes into ConnectionFactory::createConnection looks like so
array:9 [ "url" => "mysql://root:[email protected]/fwgshopmanager_test" "charset" => "UTF8" "host" => "localhost" "port" => null "user" => "root" "password" => null "driver" => "pdo_mysql" "driverOptions" => [] "defaultTableOptions" => [] ]
My suggestion to fix this would be:
The text was updated successfully, but these errors were encountered: