Closed shyim closed 3 years ago
@shyim why not use getenv('DATABASE_URL')
in the db configuration?
Yea after that I have to do parse_url
and assemble the config array. It would be fancy to have that out of the box :)
Clear. Good idea.
@shyim sry for the delay. Can you please provide an example of your DSN string?
mysql:
mysql://root:root@mysql:3306/sw6
pgsql:
postgres://main:main@127.0.0.1:32781/main
@shyim thanks
Feature will be available in the 2.9.0
version.
Almost any cloud provider uses this day env variables like
DATABASE_URL
. It would be cool, when we just pass that url and get a connection