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

cannot change database #38

Open
evan2579429110 opened this issue Apr 16, 2021 · 1 comment
Open

cannot change database #38

evan2579429110 opened this issue Apr 16, 2021 · 1 comment

Comments

@evan2579429110
Copy link

I tried to use a different schema, but found it was not supported。
I should have changed it to this (ratkor/laravel-crate.io/src/RatkoR/Crate/Connectors/Connector.php:77 and ratkor/laravel-crate.io/src/RatkoR/Crate/Connectors/Connector.php:102)
image
image

image

@RatkoR
Copy link
Owner

RatkoR commented Apr 18, 2021

Yes, you're right. Currently we connect to the default doc schema.

I'd welcome a PR that adds this. Just do what you did in your example but with isset() test (look at $port and $host). Send $database parameter to getMultipleHostsDsn() method because there is no $config variable there.

And make sure the default database is set to doc for backwards compatibility.

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

No branches or pull requests

2 participants